pub struct SwitchBody {
pub cases: Box<[SwitchCase]>,
pub span: Span,
}Expand description
The braced body of a switch.
Fields§
§cases: Box<[SwitchCase]>The cases in source order.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for SwitchBody
impl Clone for SwitchBody
Source§impl Debug for SwitchBody
impl Debug for SwitchBody
Auto Trait Implementations§
impl Freeze for SwitchBody
impl RefUnwindSafe for SwitchBody
impl Send for SwitchBody
impl Sync for SwitchBody
impl Unpin for SwitchBody
impl UnsafeUnpin for SwitchBody
impl UnwindSafe for SwitchBody
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