Struct marine_it_interfaces::MITInterfaces

source ·
pub struct MITInterfaces<'a> { /* private fields */ }

Implementations§

source§

impl<'a> MITInterfaces<'a>

source

pub fn new(interfaces: Interfaces<'a>) -> Self

source

pub fn types(&self) -> impl Iterator<Item = &Type>

source

pub fn record_types(&self) -> impl Iterator<Item = (u64, &Arc<IRecordType>)>

source

pub fn type_by_idx(&self, idx: u32) -> Option<&Type>

source

pub fn type_by_idx_r(&self, idx: u32) -> Result<&Type, MITInterfacesError>

source

pub fn imports(&self) -> impl Iterator<Item = &Import<'_>>

source

pub fn imports_by_type( &self, import_type: CoreFunctionType ) -> Option<&Vec<(ImportName<'a>, ImportNamespace<'a>)>>

source

pub fn imports_by_type_r( &self, import_type: CoreFunctionType ) -> Result<&Vec<(ImportName<'a>, ImportNamespace<'a>)>, MITInterfacesError>

source

pub fn adapters( &self ) -> impl Iterator<Item = (&AdapterFunctionType, &Vec<Instruction>)>

source

pub fn adapter_by_type( &self, adapter_type: AdapterFunctionType ) -> Option<&Vec<Instruction>>

source

pub fn adapter_by_type_r( &self, adapter_type: AdapterFunctionType ) -> Result<&Vec<Instruction>, MITInterfacesError>

source

pub fn exports(&self) -> impl Iterator<Item = &Export<'_>>

source

pub fn exports_by_type(&self, export_type: u32) -> Option<&Vec<ExportName<'a>>>

source

pub fn exports_by_type_r( &self, export_type: CoreFunctionType ) -> Result<&Vec<ExportName<'a>>, MITInterfacesError>

source

pub fn implementations( &self ) -> impl Iterator<Item = (&AdapterFunctionType, &CoreFunctionType)>

source

pub fn adapter_types_by_core_type( &self, core_function_type: CoreFunctionType ) -> Option<&Vec<AdapterFunctionType>>

source

pub fn core_types_by_adapter_type( &self, adapter_function_type: AdapterFunctionType ) -> Option<&Vec<CoreFunctionType>>

Trait Implementations§

source§

impl<'a> Debug for MITInterfaces<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for MITInterfaces<'a>

§

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.