Enum platform_data::Flow
source · [−]pub enum Flow {
Continue,
Break,
}Variants
Continue
Break
Trait Implementations
sourceimpl<C, B> From<ControlFlow<C, B>> for Flow
impl<C, B> From<ControlFlow<C, B>> for Flow
sourcefn from(flow: ControlFlow<C, B>) -> Self
fn from(flow: ControlFlow<C, B>) -> Self
Converts to this type from the input type.
sourceimpl FromResidual<<Flow as Try>::Residual> for Flow
impl FromResidual<<Flow as Try>::Residual> for Flow
sourcefn from_residual(_: <Self as Try>::Residual) -> Self
fn from_residual(_: <Self as Try>::Residual) -> Self
🔬 This is a nightly-only experimental API. (
try_trait_v2)Constructs the type from a compatible Residual type. Read more
sourceimpl Try for Flow
impl Try for Flow
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.
type Residual = Flow
type Residual = Flow
🔬 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 more
sourcefn 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 more
sourcefn 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 more
Auto Trait Implementations
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnwindSafe for Flow
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more