Struct moore_svlog::ast::EnumNameData [−][src]
pub struct EnumNameData<'a> {
pub name: Spanned<Name>,
pub range: Option<Node<'a, ExprData<'a>>>,
pub value: Option<Node<'a, ExprData<'a>>>,
}
Expand description
A single entry in an enum.
For example the FOO = 42
in enum { FOO = 42 }
.
Fields
name: Spanned<Name>
range: Option<Node<'a, ExprData<'a>>>
value: Option<Node<'a, ExprData<'a>>>
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.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EnumNameData<'a>
impl<'a> Send for EnumNameData<'a>
impl<'a> Sync for EnumNameData<'a>
impl<'a> Unpin for EnumNameData<'a>
impl<'a> !UnwindSafe for EnumNameData<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more