[][src]Trait sm_ext::NativeResult

pub trait NativeResult {
    type Ok;
    type Err;
    fn into_result(self) -> Result<Self::Ok, Self::Err>;
}

The return type for native callbacks.

Associated Types

type Ok

type Err

Loading content...

Required methods

fn into_result(self) -> Result<Self::Ok, Self::Err>

Loading content...

Implementations on Foreign Types

impl NativeResult for ()[src]

type Ok = i32

type Err = DummyNativeError

impl<E> NativeResult for Result<(), E>[src]

type Ok = i32

type Err = E

impl<'ctx, T, E> NativeResult for Result<T, E> where
    T: TryIntoPlugin<'ctx, cell_t>, 
[src]

type Ok = T

type Err = E

Loading content...

Implementors

impl<'ctx, T> NativeResult for T where
    T: TryIntoPlugin<'ctx, cell_t>, 
[src]

type Ok = T

type Err = DummyNativeError

Loading content...