pub struct VariantDesc {
pub name: String,
pub payload: Option<TypeShape>,
}Fields§
§name: String§payload: Option<TypeShape>At most one payload (design §3.1); its fields are a record if more is needed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VariantDesc
impl RefUnwindSafe for VariantDesc
impl Send for VariantDesc
impl Sync for VariantDesc
impl Unpin for VariantDesc
impl UnsafeUnpin for VariantDesc
impl UnwindSafe for VariantDesc
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