Struct moore_svlog::ast::EnumData [−][src]
pub struct EnumData<'a> {
pub base_type: Option<Box<Node<'a, TypeData<'a>>, Global>>,
pub variants: Vec<Node<'a, EnumNameData<'a>>, Global>,
}
Expand description
An enum definition.
For example enum { FOO = 42 }
.
Fields
base_type: Option<Box<Node<'a, TypeData<'a>>, Global>>
variants: Vec<Node<'a, EnumNameData<'a>>, Global>
Trait Implementations
Get this node’s name, or None
if it does not have one.
Describe this node for diagnostics in indefinite form, e.g. “entity”. Read more
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Describe this node for diagnostics in indefinite form, e.g. “entity”.
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Describe this node for diagnostics in indefinite form, e.g. “entity”.
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Apply a function to each child node.
Apply a function to this node.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EnumData<'a>
impl<'a> !UnwindSafe for EnumData<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more