#[repr(u8)]pub enum Exit<T: _T> {
Ok(T),
Error(String),
InvocationError(String),
IO(String),
}Variants§
Trait Implementations§
Source§impl<Derive_TryConvert_ResultT, Derive_TryConvert_ResultE: From<Exit<!>>> FromResidual<Exit<!>> for Result<Derive_TryConvert_ResultT, Derive_TryConvert_ResultE>
impl<Derive_TryConvert_ResultT, Derive_TryConvert_ResultE: From<Exit<!>>> FromResidual<Exit<!>> for Result<Derive_TryConvert_ResultT, Derive_TryConvert_ResultE>
Source§impl<T: _T, Derive_TryConvert_ResultE: Into<Exit<!>>> FromResidual<Result<Infallible, Derive_TryConvert_ResultE>> for Exit<T>
impl<T: _T, Derive_TryConvert_ResultE: Into<Exit<!>>> FromResidual<Result<Infallible, Derive_TryConvert_ResultE>> for Exit<T>
Source§fn from_residual(
residual: Result<Infallible, Derive_TryConvert_ResultE>,
) -> Self
fn from_residual( residual: Result<Infallible, Derive_TryConvert_ResultE>, ) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from a compatible
Residual type. Read moreSource§impl<T: Ord + _T> Ord for Exit<T>
impl<T: Ord + _T> Ord for Exit<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + _T> PartialOrd for Exit<T>
impl<T: PartialOrd + _T> PartialOrd for Exit<T>
Source§impl<T: _T> Termination for Exit<T>
impl<T: _T> Termination for Exit<T>
Source§impl<T: _T> Try for Exit<T>
impl<T: _T> Try for Exit<T>
Source§type Output = T
type Output = T
🔬This is a nightly-only experimental API. (
try_trait_v2)The type of the value produced by
? when not short-circuiting.Source§type Residual = Exit<!>
type Residual = Exit<!>
🔬This is a nightly-only experimental API. (
try_trait_v2)The type of the value passed to
FromResidual::from_residual
as part of ? when short-circuiting. Read moreSource§fn from_output(output: Self::Output) -> Self
fn from_output(output: Self::Output) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from its
Output type. Read moreSource§fn branch(self) -> ControlFlow<Self::Residual, Self::Output>
fn branch(self) -> ControlFlow<Self::Residual, Self::Output>
🔬This is a nightly-only experimental API. (
try_trait_v2)Used in
? to decide whether the operator should produce a value
(because this returned ControlFlow::Continue)
or propagate a value back to the caller
(because this returned ControlFlow::Break). Read moreimpl<T: Eq + _T> Eq for Exit<T>
impl<T: _T> StructuralPartialEq for Exit<T>
Auto Trait Implementations§
impl<T> Freeze for Exit<T>where
T: Freeze,
impl<T> RefUnwindSafe for Exit<T>where
T: RefUnwindSafe,
impl<T> Send for Exit<T>where
T: Send,
impl<T> Sync for Exit<T>where
T: Sync,
impl<T> Unpin for Exit<T>where
T: Unpin,
impl<T> UnsafeUnpin for Exit<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Exit<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more