pub enum TermResult {
Some(Term),
None,
}Variants§
Trait Implementations§
Source§impl FromResidual for TermResult
impl FromResidual for TermResult
Source§impl Try for TermResult
impl Try for TermResult
Source§type Output = ()
type Output = ()
🔬This is a nightly-only experimental API. (
try_trait_v2)The type of the value produced by
? when not short-circuiting.Source§type Residual = Term
type Residual = Term
🔬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(_: Self::Output) -> Self
fn from_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 Freeze for TermResult
impl !RefUnwindSafe for TermResult
impl !Send for TermResult
impl Sync for TermResult
impl Unpin for TermResult
impl !UnwindSafe for TermResult
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