pub struct ModuleInfo<'a> {
pub num_functions: u32,
pub num_types: u32,
/* private fields */
}Expand description
Represents a module declaration.
Fields§
§num_functions: u32Number of module functions
num_types: u32Number of module types
Implementations§
Source§impl<'a> ModuleInfo<'a>
impl<'a> ModuleInfo<'a>
Sourcepub fn functions(&self) -> &[FunctionDefinition<'a>]
pub fn functions(&self) -> &[FunctionDefinition<'a>]
Returns the module’s functions.
Sourcepub fn types(&self) -> &[TypeDefinition<'a>]
pub fn types(&self) -> &[TypeDefinition<'a>]
Returns the module’s types.
Trait Implementations§
impl<'a> Send for ModuleInfo<'a>
impl<'a> Sync for ModuleInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ModuleInfo<'a>
impl<'a> RefUnwindSafe for ModuleInfo<'a>
impl<'a> Unpin for ModuleInfo<'a>
impl<'a> UnwindSafe for ModuleInfo<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more