pub struct Ctor {
pub name: &'static str,
pub number: u64,
pub parts: Parts,
}Expand description
A constructor of a declared enum.
Fields§
§name: &'static strThe constructor’s name.
number: u64The number its value is written with.
parts: PartsIts payload.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Ctor
impl Freeze for Ctor
impl Move for Ctor
impl RefUnwindSafe for Ctor
impl Send for Ctor
impl Sync for Ctor
impl Unpin for Ctor
impl UnsafeUnpin for Ctor
impl UnwindSafe for Ctor
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