Enum haybale::ReturnValue[][src]

pub enum ReturnValue<V> {
    Return(V),
    ReturnVoid,
    Throw(V),
    Abort,
}

A simple enum describing the value returned from a function

Variants

Return(V)

The function or call returns this value

ReturnVoid

The function or call returns void

Throw(V)

The function or call throws this value (using the LLVM invoke/resume mechanism, which is used for e.g. C++ exceptions)

(note that, unless other comments say otherwise, this is a pointer to the actual value or object thrown, not the value itself)

Abort

The function or call aborts without ever returning (e.g., with a Rust panic, or by calling the C exit() function)

Trait Implementations

impl<V: Clone> Clone for ReturnValue<V>[src]

impl<V: Copy> Copy for ReturnValue<V>[src]

impl<V: Debug> Debug for ReturnValue<V>[src]

impl<V: Eq> Eq for ReturnValue<V>[src]

impl<V: Hash> Hash for ReturnValue<V>[src]

impl<V: PartialEq> PartialEq<ReturnValue<V>> for ReturnValue<V>[src]

impl<V> StructuralEq for ReturnValue<V>[src]

impl<V> StructuralPartialEq for ReturnValue<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for ReturnValue<V> where
    V: RefUnwindSafe
[src]

impl<V> Send for ReturnValue<V> where
    V: Send
[src]

impl<V> Sync for ReturnValue<V> where
    V: Sync
[src]

impl<V> Unpin for ReturnValue<V> where
    V: Unpin
[src]

impl<V> UnwindSafe for ReturnValue<V> where
    V: UnwindSafe
[src]

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> 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.