pub enum VariantDesc {
NamedStructOf(Vec<Field>),
UnnamedStructOf(Vec<LookupName>),
}Expand description
The shape of the variant.
Variants§
NamedStructOf(Vec<Field>)
named variant fields are basically a struct.
UnnamedStructOf(Vec<LookupName>)
Unnamed variant fields are basically a tuple of type descriptions.
Trait Implementations§
Source§impl Clone for VariantDesc
impl Clone for VariantDesc
Source§fn clone(&self) -> VariantDesc
fn clone(&self) -> VariantDesc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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