Struct wasmtime::Export [−][src]
An exported WebAssembly value.
This type is primarily accessed from the
Instance::exports
accessor and describes what
names and items are exported from a wasm instance.
Implementations
impl<'instance> Export<'instance>
[src]
pub fn name(&self) -> &'instance str
[src]
Returns the name by which this export is known.
pub fn ty(&self) -> ExternType
[src]
Return the ExternType
of this export.
pub fn into_extern(self) -> Extern
[src]
Consume this Export
and return the contained Extern
.
pub fn into_func(self) -> Option<Func>
[src]
Consume this Export
and return the contained Func
, if it’s a function,
or None
otherwise.
pub fn into_table(self) -> Option<Table>
[src]
Consume this Export
and return the contained Table
, if it’s a table,
or None
otherwise.
pub fn into_memory(self) -> Option<Memory>
[src]
Consume this Export
and return the contained Memory
, if it’s a memory,
or None
otherwise.
pub fn into_global(self) -> Option<Global>
[src]
Consume this Export
and return the contained Global
, if it’s a global,
or None
otherwise.
Trait Implementations
Auto Trait Implementations
impl<'instance> !RefUnwindSafe for Export<'instance>
impl<'instance> !Send for Export<'instance>
impl<'instance> !Sync for Export<'instance>
impl<'instance> Unpin for Export<'instance>
impl<'instance> !UnwindSafe for Export<'instance>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,