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

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

Kind of local or import type.

Variants

Local(T::Local)

Local.

Import(T::Import)

Import.

Implementations

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

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

Returns Some if self is local, None if self is an import.

pub fn import(self) -> Option<T::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

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

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.