pub struct Constructor<M = String> {
pub docs: String,
pub name: String,
pub payload: Payload<M>,
}Expand description
A constructor of an enum.
Fields§
§docs: StringIts doc comment.
name: StringIts name.
payload: Payload<M>What it holds.
Trait Implementations§
Source§impl<M: Clone> Clone for Constructor<M>
impl<M: Clone> Clone for Constructor<M>
Source§impl<M: Debug> Debug for Constructor<M>
impl<M: Debug> Debug for Constructor<M>
impl<M: Eq> Eq for Constructor<M>
Source§impl<M: PartialEq> PartialEq for Constructor<M>
impl<M: PartialEq> PartialEq for Constructor<M>
impl<M: PartialEq> StructuralPartialEq for Constructor<M>
Auto Trait Implementations§
impl<M> Forget for Constructor<M>
impl<M> Freeze for Constructor<M>where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TypeRef<M>>: Freeze,
PhantomData<Field<M>>: Freeze,
impl<M> Move for Constructor<M>
impl<M> RefUnwindSafe for Constructor<M>where
M: RefUnwindSafe,
impl<M> Send for Constructor<M>
impl<M> Sync for Constructor<M>
impl<M> Unpin for Constructor<M>
impl<M> UnsafeUnpin for Constructor<M>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeRef<M>>: UnsafeUnpin,
PhantomData<Field<M>>: UnsafeUnpin,
impl<M> UnwindSafe for Constructor<M>where
RawVecInner: UnwindSafe,
M: UnwindSafe,
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