mirror of
https://github.com/fluencelabs/marine.git
synced 2025-06-12 22:41:26 +00:00
Return JValue from call_json (#39)
This commit is contained in:
@ -23,6 +23,7 @@ use multimap::MultiMap;
|
||||
|
||||
use std::iter::Iterator;
|
||||
use std::collections::HashMap;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub type CoreFunctionType = u32;
|
||||
pub type AdapterFunctionType = u32;
|
||||
@ -109,7 +110,7 @@ impl<'a> FCEWITInterfaces<'a> {
|
||||
self.types.iter()
|
||||
}
|
||||
|
||||
pub fn record_types(&self) -> impl Iterator<Item = (u64, &RecordType)> {
|
||||
pub fn record_types(&self) -> impl Iterator<Item = (u64, &Rc<RecordType>)> {
|
||||
self.types.iter().enumerate().filter_map(|(id, t)| match t {
|
||||
WITAstType::Record(r) => Some((id as u64, r)),
|
||||
_ => None,
|
||||
|
Reference in New Issue
Block a user