Enum haybale::ReturnValue [−][src]
pub enum ReturnValue<V> {
Return(V),
ReturnVoid,
Throw(V),
Abort,
}
Expand description
A simple enum describing the value returned from a function
Variants
The function or call returns this value
The function or call returns void
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)
The function or call aborts without ever returning (e.g., with a Rust
panic, or by calling the C exit()
function)
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<V> RefUnwindSafe for ReturnValue<V> where
V: RefUnwindSafe,
impl<V> Send for ReturnValue<V> where
V: Send,
impl<V> Sync for ReturnValue<V> where
V: Sync,
impl<V> Unpin for ReturnValue<V> where
V: Unpin,
impl<V> UnwindSafe for ReturnValue<V> where
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more