#[non_exhaustive]pub struct Arm {
pub value: u64,
pub body: Vec<Segment>,
pub name: String,
pub doc: Option<String>,
}Expand description
One arm of a switch.
An arm’s fields can refer only to each other.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: u64The discriminant value that selects this arm.
body: Vec<Segment>The arm’s segments, in wire order.
name: StringThe variant name.
doc: Option<String>Documentation.
Implementations§
Trait Implementations§
impl Eq for Arm
impl StructuralPartialEq for Arm
Auto Trait Implementations§
impl Freeze for Arm
impl RefUnwindSafe for Arm
impl Send for Arm
impl Sync for Arm
impl Unpin for Arm
impl UnsafeUnpin for Arm
impl UnwindSafe for Arm
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