pub struct ImportType<'module> { /* private fields */ }
Expand description
Defines the types of the imported wasm value.
Implementations§
Source§impl ImportType<'_>
impl ImportType<'_>
Sourcepub fn ty(&self) -> WasmEdgeResult<ExternalInstanceType>
pub fn ty(&self) -> WasmEdgeResult<ExternalInstanceType>
Returns the type of this import.
Sourcepub fn name(&self) -> Cow<'_, str>
pub fn name(&self) -> Cow<'_, str>
Returns the field name of the module that this import is expected to come from.
Sourcepub fn module_name(&self) -> Cow<'_, str>
pub fn module_name(&self) -> Cow<'_, str>
Returns the module name that this import is expected to come from.
Sourcepub fn as_ptr(&self) -> *const WasmEdge_ImportTypeContext
Available on crate feature ffi
only.
pub fn as_ptr(&self) -> *const WasmEdge_ImportTypeContext
ffi
only.Provides a raw pointer to the inner ImportType context.
Trait Implementations§
Source§impl<'module> Debug for ImportType<'module>
impl<'module> Debug for ImportType<'module>
Auto Trait Implementations§
impl<'module> Freeze for ImportType<'module>
impl<'module> RefUnwindSafe for ImportType<'module>
impl<'module> Send for ImportType<'module>
impl<'module> Sync for ImportType<'module>
impl<'module> Unpin for ImportType<'module>
impl<'module> UnwindSafe for ImportType<'module>
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