Struct moore_svlog::ty::EnumType [−][src]
pub struct EnumType<'a> {
pub ast: &'a Enum<'a>,
pub base: &'a PackedType<'a>,
pub base_explicit: bool,
pub variants: Vec<(Spanned<Name>, &'a EnumName<'a>)>,
}
Expand description
An enum type.
Fields
ast: &'a Enum<'a>
The corresponding AST node of this enum definition.
base: &'a PackedType<'a>
The base type of this enum.
base_explicit: bool
Whether the base type was explicit in the source code.
variants: Vec<(Spanned<Name>, &'a EnumName<'a>)>
The list of variants.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EnumType<'a>
impl<'a> !UnwindSafe for EnumType<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more