pub struct Nondet<T>(/* private fields */);Expand description
Non-determinism primitive. See Non-determinism.
Trait Implementations§
source§impl<T> FromResidual<Infallible> for Nondet<T>
impl<T> FromResidual<Infallible> for Nondet<T>
source§fn from_residual(residual: Infallible) -> Self
fn from_residual(residual: Infallible) -> Self
🔬This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from a compatible
Residual type. Read moresource§impl<T> MonadicReturn for Nondet<T>
impl<T> MonadicReturn for Nondet<T>
source§fn monadic_return(t: T) -> Self
fn monadic_return(t: T) -> Self
Wraps a value of
Self::Inner into a Self.source§impl<T> Try for Nondet<T>
impl<T> Try for Nondet<T>
§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.§type Residual = Infallible
type Residual = Infallible
🔬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: Copy> Copy for Nondet<T>
Auto Trait Implementations§
impl<T> Freeze for Nondet<T>where
T: Freeze,
impl<T> RefUnwindSafe for Nondet<T>where
T: RefUnwindSafe,
impl<T> Send for Nondet<T>where
T: Send,
impl<T> Sync for Nondet<T>where
T: Sync,
impl<T> Unpin for Nondet<T>where
T: Unpin,
impl<T> UnwindSafe for Nondet<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