Enum tear::twist_impl::Looping [−][src]
Different loop control signals that twist!
understands
We map break
, break $value
and continue
to types.
Variants
Resume loop execution with value of type T
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
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
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]
fn clone(&self) -> Looping<T, B>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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,
B: Send,
T: Send,
impl<T, B> Sync for Looping<T, B> where
B: Sync,
T: Sync,
B: Sync,
T: Sync,
impl<T, B> Unpin for Looping<T, B> where
B: Unpin,
T: Unpin,
B: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,