pub enum Transition<TCurr, TNext> {
Unchanged(TCurr),
ChangedTo(TNext),
}Variants§
Trait Implementations§
Source§impl<TCurr, TNext> FromResidual for Transition<TCurr, TNext>
impl<TCurr, TNext> FromResidual for Transition<TCurr, TNext>
Source§impl<TCurr, TNext> Try for Transition<TCurr, TNext>
impl<TCurr, TNext> Try for Transition<TCurr, TNext>
Source§type Output = TCurr
type Output = TCurr
🔬This is a nightly-only experimental API. (
try_trait_v2)The type of the value produced by
? when not short-circuiting.Source§type Residual = TNext
type Residual = TNext
🔬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 moreAuto Trait Implementations§
impl<TCurr, TNext> Freeze for Transition<TCurr, TNext>
impl<TCurr, TNext> RefUnwindSafe for Transition<TCurr, TNext>where
TCurr: RefUnwindSafe,
TNext: RefUnwindSafe,
impl<TCurr, TNext> Send for Transition<TCurr, TNext>
impl<TCurr, TNext> Sync for Transition<TCurr, TNext>
impl<TCurr, TNext> Unpin for Transition<TCurr, TNext>
impl<TCurr, TNext> UnwindSafe for Transition<TCurr, TNext>where
TCurr: UnwindSafe,
TNext: 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