pub struct ImportedFunction { /* private fields */ }Expand description
Imported function metadata.
Implementations§
Source§impl ImportedFunction
impl ImportedFunction
Sourcepub const fn new(module: ImportModuleName, name: ImportName) -> Self
pub const fn new(module: ImportModuleName, name: ImportName) -> Self
Creates imported function metadata.
Sourcepub const fn with_type_index(self, type_index: u32) -> Self
pub const fn with_type_index(self, type_index: u32) -> Self
Attaches a function type index.
Sourcepub const fn module(&self) -> &ImportModuleName
pub const fn module(&self) -> &ImportModuleName
Returns the import module name.
Sourcepub const fn name(&self) -> &ImportName
pub const fn name(&self) -> &ImportName
Returns the import field name.
Sourcepub const fn type_index(&self) -> Option<u32>
pub const fn type_index(&self) -> Option<u32>
Returns the optional function type index.
Trait Implementations§
Source§impl Clone for ImportedFunction
impl Clone for ImportedFunction
Source§fn clone(&self) -> ImportedFunction
fn clone(&self) -> ImportedFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImportedFunction
impl Debug for ImportedFunction
Source§impl Hash for ImportedFunction
impl Hash for ImportedFunction
Source§impl PartialEq for ImportedFunction
impl PartialEq for ImportedFunction
Source§fn eq(&self, other: &ImportedFunction) -> bool
fn eq(&self, other: &ImportedFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ImportedFunction
impl StructuralPartialEq for ImportedFunction
Auto Trait Implementations§
impl Freeze for ImportedFunction
impl RefUnwindSafe for ImportedFunction
impl Send for ImportedFunction
impl Sync for ImportedFunction
impl Unpin for ImportedFunction
impl UnsafeUnpin for ImportedFunction
impl UnwindSafe for ImportedFunction
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