pub struct Enum {
pub original_type_id: TypeId,
pub type_id: TypeId,
pub has_fields: bool,
pub variants: IndexMap<String, TypeId>,
}Expand description
Represents an enum type which can have multiple variants.
Fields§
§original_type_id: TypeIdA pointer to the enum from which this was derived.
type_id: TypeIdThe structural type of the enum.
has_fields: boolWhether the enum semantically has fields.
variants: IndexMap<String, TypeId>This is a map of the original variant names to their type ids.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Enum
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnwindSafe for Enum
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