[−][src]Enum wasmer_runtime::types::LocalOrImport
Kind of local or import type.
Variants
Local(<T as LocalImport>::Local)
Local.
Import(<T as LocalImport>::Import)
Import.
Methods
impl<T> LocalOrImport<T> where
T: LocalImport,
[src]
T: LocalImport,
pub fn local(self) -> Option<<T as LocalImport>::Local>
[src]
Returns Some
if self is local, None
if self is an import.
pub fn import(self) -> Option<<T as LocalImport>::Import>
[src]
Returns Some
if self is an import, None
if self is local.
Auto Trait Implementations
impl<T> RefUnwindSafe for LocalOrImport<T> where
<T as LocalImport>::Import: RefUnwindSafe,
<T as LocalImport>::Local: RefUnwindSafe,
<T as LocalImport>::Import: RefUnwindSafe,
<T as LocalImport>::Local: RefUnwindSafe,
impl<T> Send for LocalOrImport<T> where
<T as LocalImport>::Import: Send,
<T as LocalImport>::Local: Send,
<T as LocalImport>::Import: Send,
<T as LocalImport>::Local: Send,
impl<T> Sync for LocalOrImport<T> where
<T as LocalImport>::Import: Sync,
<T as LocalImport>::Local: Sync,
<T as LocalImport>::Import: Sync,
<T as LocalImport>::Local: Sync,
impl<T> Unpin for LocalOrImport<T> where
<T as LocalImport>::Import: Unpin,
<T as LocalImport>::Local: Unpin,
<T as LocalImport>::Import: Unpin,
<T as LocalImport>::Local: Unpin,
impl<T> UnwindSafe for LocalOrImport<T> where
<T as LocalImport>::Import: UnwindSafe,
<T as LocalImport>::Local: UnwindSafe,
<T as LocalImport>::Import: UnwindSafe,
<T as LocalImport>::Local: UnwindSafe,
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,
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, 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.
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>,