#[non_exhaustive]pub enum ControlTransferKind {
Return,
Next,
Last,
Redo,
Goto,
}Expand description
Control-transfer verb for a ControlTransfer.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Return
return from the enclosing subroutine.
Next
next to the next loop iteration.
Last
last out of the enclosing loop.
Redo
redo the current loop iteration.
Goto
goto a label, sub reference, or expression.
Trait Implementations§
Source§impl Clone for ControlTransferKind
impl Clone for ControlTransferKind
Source§fn clone(&self) -> ControlTransferKind
fn clone(&self) -> ControlTransferKind
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 ControlTransferKind
Source§impl Debug for ControlTransferKind
impl Debug for ControlTransferKind
impl Eq for ControlTransferKind
Source§impl Hash for ControlTransferKind
impl Hash for ControlTransferKind
Source§impl PartialEq for ControlTransferKind
impl PartialEq for ControlTransferKind
Source§fn eq(&self, other: &ControlTransferKind) -> bool
fn eq(&self, other: &ControlTransferKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlTransferKind
Auto Trait Implementations§
impl Freeze for ControlTransferKind
impl RefUnwindSafe for ControlTransferKind
impl Send for ControlTransferKind
impl Sync for ControlTransferKind
impl Unpin for ControlTransferKind
impl UnsafeUnpin for ControlTransferKind
impl UnwindSafe for ControlTransferKind
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