pub enum SwitchLabel {
Default,
Case {
elements: Vec<CaseElement>,
guard: Option<Box<Expr>>,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SwitchLabel
impl Clone for SwitchLabel
Source§impl Debug for SwitchLabel
impl Debug for SwitchLabel
Source§impl PartialEq for SwitchLabel
impl PartialEq for SwitchLabel
impl StructuralPartialEq for SwitchLabel
Auto Trait Implementations§
impl Forget for SwitchLabel
impl Freeze for SwitchLabel
impl Move for SwitchLabel
impl RefUnwindSafe for SwitchLabel
impl Send for SwitchLabel
impl Sync for SwitchLabel
impl Unpin for SwitchLabel
impl UnsafeUnpin for SwitchLabel
impl UnwindSafe for SwitchLabel
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