pub struct Variant {
pub original_type_id: TypeId,
pub original_enum_type_id: TypeId,
pub field_names: Option<IndexSet<String>>,
pub type_id: TypeId,
pub nil_terminated: bool,
pub generic_types: Vec<TypeId>,
pub discriminant: BigInt,
}Expand description
Represents a variant type which can optionally have fields.
Fields§
§original_type_id: TypeIdA pointer to the variant from which this was derived.
original_enum_type_id: TypeIdThe original enum type to which this variant belongs.
field_names: Option<IndexSet<String>>The field names of the variant.
type_id: TypeIdThe structural type of the enum variant.
nil_terminated: boolWhether the chain of cons pairs is nil terminated.
generic_types: Vec<TypeId>The generic types of the variant.
discriminant: BigIntThe discriminant value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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