pub struct SwitchBody {
pub cases: Box<[SwitchCase]>,
pub span: Span,
}Fields§
§cases: Box<[SwitchCase]>§span: SpanTrait Implementations§
Source§impl Clone for SwitchBody
impl Clone for SwitchBody
Source§fn clone(&self) -> SwitchBody
fn clone(&self) -> SwitchBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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