[][src]Enum wasmer_runtime_core::types::LocalOrImport

pub enum LocalOrImport<T> where
    T: LocalImport
{ Local(T::Local), Import(T::Import), }

Variants

Local(T::Local)
Import(T::Import)

Methods

impl<T> LocalOrImport<T> where
    T: LocalImport
[src]

pub fn local(self) -> Option<T::Local>[src]

pub fn import(self) -> Option<T::Import>[src]

Auto Trait Implementations

impl<T> Send for LocalOrImport<T> where
    <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

impl<T> Unpin for LocalOrImport<T> where
    <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

impl<T> RefUnwindSafe for LocalOrImport<T> where
    <T as LocalImport>::Import: RefUnwindSafe,
    <T as LocalImport>::Local: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]