pub enum SwitchCaseCondition<'s> {
Default {
default: &'s Token<'s>,
},
Case {
case: &'s Token<'s>,
value: Box<Expression<'s>>,
},
}Expand description
Condition in a SwitchCase.
Variants§
Trait Implementations§
Source§impl<'s> Clone for SwitchCaseCondition<'s>
impl<'s> Clone for SwitchCaseCondition<'s>
Source§fn clone(&self) -> SwitchCaseCondition<'s>
fn clone(&self) -> SwitchCaseCondition<'s>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'s> Freeze for SwitchCaseCondition<'s>
impl<'s> RefUnwindSafe for SwitchCaseCondition<'s>
impl<'s> Send for SwitchCaseCondition<'s>
impl<'s> Sync for SwitchCaseCondition<'s>
impl<'s> Unpin for SwitchCaseCondition<'s>
impl<'s> UnwindSafe for SwitchCaseCondition<'s>
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