pub struct SwitchGroup {
pub values: Vec<CaseRange>,
pub body: Vec<Stmt>,
}Expand description
One run of statements in a switch, together with the values that enter it.
Fields§
§values: Vec<CaseRange>The case values that jump here, already converted to the type of the
controlling expression.
body: Vec<Stmt>The statements, which fall through into the next group.
Trait Implementations§
Source§impl Clone for SwitchGroup
impl Clone for SwitchGroup
Auto Trait Implementations§
impl Freeze for SwitchGroup
impl RefUnwindSafe for SwitchGroup
impl Send for SwitchGroup
impl Sync for SwitchGroup
impl Unpin for SwitchGroup
impl UnsafeUnpin for SwitchGroup
impl UnwindSafe for SwitchGroup
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