pub enum Label {
Identifier(Node<Identifier>),
Case(Box<Node<Expression>>),
CaseRange(Node<CaseRange>),
Default,
}
Expand description
Statement labels for goto
and switch
Variants§
Identifier(Node<Identifier>)
Goto label
ident: …
Case(Box<Node<Expression>>)
Case in a switch
statement
case 'a': …
CaseRange(Node<CaseRange>)
Default
Default case in a switch
statement
default: …
Trait Implementations§
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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