FCEWITInterfaces

Struct FCEWITInterfaces 

Source
pub struct FCEWITInterfaces<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> FCEWITInterfaces<'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, &Rc<IRecordType>)>

Source

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

Source

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

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>)>, FCEWITInterfacesError>

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>, FCEWITInterfacesError>

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>>, FCEWITInterfacesError>

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>>

Auto Trait Implementations§

§

impl<'a> Freeze for FCEWITInterfaces<'a>

§

impl<'a> RefUnwindSafe for FCEWITInterfaces<'a>

§

impl<'a> !Send for FCEWITInterfaces<'a>

§

impl<'a> !Sync for FCEWITInterfaces<'a>

§

impl<'a> Unpin for FCEWITInterfaces<'a>

§

impl<'a> UnwindSafe for FCEWITInterfaces<'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>,

Source§

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>,

Source§

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.