Struct marine_it_interfaces::MITInterfaces
source · [−]pub struct MITInterfaces<'a> { /* private fields */ }
Implementations
sourceimpl<'a> MITInterfaces<'a>
impl<'a> MITInterfaces<'a>
pub fn new(interfaces: Interfaces<'a>) -> Self
pub fn types(&self) -> impl Iterator<Item = &Type>
pub fn record_types(&self) -> impl Iterator<Item = (u64, &Rc<IRecordType>)>
pub fn type_by_idx(&self, idx: u32) -> Option<&Type>
pub fn type_by_idx_r(&self, idx: u32) -> Result<&Type, MITInterfacesError>
pub fn imports(&self) -> impl Iterator<Item = &Import<'_>>
pub fn imports_by_type(
&self,
import_type: CoreFunctionType
) -> Option<&Vec<(ImportName<'a>, ImportNamespace<'a>)>>
pub fn imports_by_type_r(
&self,
import_type: CoreFunctionType
) -> Result<&Vec<(ImportName<'a>, ImportNamespace<'a>)>, MITInterfacesError>
pub fn adapters(
&self
) -> impl Iterator<Item = (&AdapterFunctionType, &Vec<Instruction>)>
pub fn adapter_by_type(
&self,
adapter_type: AdapterFunctionType
) -> Option<&Vec<Instruction>>
pub fn adapter_by_type_r(
&self,
adapter_type: AdapterFunctionType
) -> Result<&Vec<Instruction>, MITInterfacesError>
pub fn exports(&self) -> impl Iterator<Item = &Export<'_>>
pub fn exports_by_type(&self, export_type: u32) -> Option<&Vec<ExportName<'a>>>
pub fn exports_by_type_r(
&self,
export_type: CoreFunctionType
) -> Result<&Vec<ExportName<'a>>, MITInterfacesError>
pub fn implementations(
&self
) -> impl Iterator<Item = (&AdapterFunctionType, &CoreFunctionType)>
pub fn adapter_types_by_core_type(
&self,
core_function_type: CoreFunctionType
) -> Option<&Vec<AdapterFunctionType>>
pub fn core_types_by_adapter_type(
&self,
adapter_function_type: AdapterFunctionType
) -> Option<&Vec<CoreFunctionType>>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for MITInterfaces<'a>
impl<'a> !Send for MITInterfaces<'a>
impl<'a> !Sync for MITInterfaces<'a>
impl<'a> Unpin for MITInterfaces<'a>
impl<'a> UnwindSafe for MITInterfaces<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more