#[non_exhaustive]pub struct DispatchArm {
pub id: i64,
pub name: String,
pub ty: String,
pub doc: Option<String>,
}Expand description
One arm of a DispatchDef.
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.id: i64The id that selects this arm.
name: StringThe variant name.
ty: StringThe body type, which implements Layout.
doc: Option<String>Documentation.
Implementations§
Trait Implementations§
Source§impl Clone for DispatchArm
impl Clone for DispatchArm
Source§impl Debug for DispatchArm
impl Debug for DispatchArm
impl Eq for DispatchArm
Source§impl PartialEq for DispatchArm
impl PartialEq for DispatchArm
impl StructuralPartialEq for DispatchArm
Auto Trait Implementations§
impl Freeze for DispatchArm
impl RefUnwindSafe for DispatchArm
impl Send for DispatchArm
impl Sync for DispatchArm
impl Unpin for DispatchArm
impl UnsafeUnpin for DispatchArm
impl UnwindSafe for DispatchArm
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