[][src]Enum gluon_vm::api::RuntimeResult

pub enum RuntimeResult<T, E = String> {
    Return(T),
    Panic(E),
}

Variants

Return(T)
Panic(E)

Methods

impl<T, E> RuntimeResult<T, E>[src]

pub fn map<U>(self, f: impl FnOnce(T) -> U) -> RuntimeResult<U, E>[src]

Trait Implementations

impl<T: Clone, E: Clone> Clone for RuntimeResult<T, E>[src]

impl<T, E> From<Result<T, E>> for RuntimeResult<T, E>[src]

impl<'vm, T: Pushable<'vm>, E: Display> Pushable<'vm> for RuntimeResult<T, E>[src]

impl<T: VmType, E> VmType for RuntimeResult<T, E>[src]

type Type = T::Type

A version of Self which implements Any allowing a TypeId to be retrieved

Auto Trait Implementations

impl<T, E> RefUnwindSafe for RuntimeResult<T, E> where
    E: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, E> Send for RuntimeResult<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for RuntimeResult<T, E> where
    E: Sync,
    T: Sync

impl<T, E> Unpin for RuntimeResult<T, E> where
    E: Unpin,
    T: Unpin

impl<T, E> UnwindSafe for RuntimeResult<T, E> where
    E: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<'vm, T> AsyncPushable<'vm> for T where
    T: Pushable<'vm>, 
[src]

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

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

impl<'_, T> Captures<'_> for T[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

impl<D, T> FromPtr<D> for T[src]

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

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<'vm, T> Pushable<'vm> for T where
    T: Userdata
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.