pub enum NonLocalExitKind {
Break,
Next,
Return,
}Expand description
The flavor of a non-local exit: loop break, loop continue, or block return.
Variants§
Break
Exit the enclosing labeled loop.
Next
Continue to the next iteration of the enclosing labeled loop.
Return
Return from the enclosing labeled block.
Trait Implementations§
Source§impl Clone for NonLocalExitKind
impl Clone for NonLocalExitKind
Source§fn clone(&self) -> NonLocalExitKind
fn clone(&self) -> NonLocalExitKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NonLocalExitKind
Source§impl Debug for NonLocalExitKind
impl Debug for NonLocalExitKind
impl Eq for NonLocalExitKind
Source§impl PartialEq for NonLocalExitKind
impl PartialEq for NonLocalExitKind
Source§fn eq(&self, other: &NonLocalExitKind) -> bool
fn eq(&self, other: &NonLocalExitKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NonLocalExitKind
Auto Trait Implementations§
impl Freeze for NonLocalExitKind
impl RefUnwindSafe for NonLocalExitKind
impl Send for NonLocalExitKind
impl Sync for NonLocalExitKind
impl Unpin for NonLocalExitKind
impl UnsafeUnpin for NonLocalExitKind
impl UnwindSafe for NonLocalExitKind
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