pub enum CaseTerminator {
Break,
Fallthrough,
ContinueTesting,
}Expand description
Terminator for a case item arm.
Variants§
Break
;; — stop matching after this arm.
Fallthrough
;& — fall through to the next arm’s body unconditionally.
ContinueTesting
;;& — continue testing remaining patterns.
Trait Implementations§
Source§impl Clone for CaseTerminator
impl Clone for CaseTerminator
Source§fn clone(&self) -> CaseTerminator
fn clone(&self) -> CaseTerminator
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 moreSource§impl Debug for CaseTerminator
impl Debug for CaseTerminator
Source§impl PartialEq for CaseTerminator
impl PartialEq for CaseTerminator
Source§fn eq(&self, other: &CaseTerminator) -> bool
fn eq(&self, other: &CaseTerminator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CaseTerminator
impl Eq for CaseTerminator
impl StructuralPartialEq for CaseTerminator
Auto Trait Implementations§
impl Freeze for CaseTerminator
impl RefUnwindSafe for CaseTerminator
impl Send for CaseTerminator
impl Sync for CaseTerminator
impl Unpin for CaseTerminator
impl UnsafeUnpin for CaseTerminator
impl UnwindSafe for CaseTerminator
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