Enum tear::twist_impl::Looping[][src]

pub enum Looping<T, B> {
    Resume(T),
    Break {
        label: Option<usize>,
    },
    BreakVal {
        label: Option<usize>,
        value: B,
    },
    Continue {
        label: Option<usize>,
    },
}

Different loop control signals that twist! understands

We map break, break $value and continue to types.

Variants

Resume(T)

Resume loop execution with value of type T

Break

Break a loop selected by label

Fields of Break

label: Option<usize>

The index of the label of the loop to break from. None means innermost loop

BreakVal

Break a loop selected by label with a value of value

Fields of BreakVal

label: Option<usize>

The index of the label of the loop to break from. None means innermost loop

value: B

The value to break with

Continue

Skip to the next iteration of the loop selected by label

Fields of Continue

label: Option<usize>

The index of the label of the loop to continue from. None means innermost loop

Trait Implementations

impl<T: Clone, B: Clone> Clone for Looping<T, B>[src]

impl<T: Debug, B: Debug> Debug for Looping<T, B>[src]

impl<T: PartialEq, B: PartialEq> PartialEq<Looping<T, B>> for Looping<T, B>[src]

impl<T, B> StructuralPartialEq for Looping<T, B>[src]

Auto Trait Implementations

impl<T, B> Send for Looping<T, B> where
    B: Send,
    T: Send

impl<T, B> Sync for Looping<T, B> where
    B: Sync,
    T: Sync

impl<T, B> Unpin for Looping<T, B> where
    B: Unpin,
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.