pub struct EnumeratorNode {
pub node_id: NodeId,
pub name: String,
pub value: Option<Id<ConstExprNode>>,
pub parent: Id<TypeNode>,
pub facets: Facets,
}Expand description
One enumerator. Spec §3.3.
value is None for a positional enumerator and Some for an
explicit @value(n). The two encode differently, so collapsing the
distinction is a wire bug — one that the emitters this rebuild
replaces actually shipped.
Fields§
§node_id: NodeIdStable identity.
name: StringSimple name.
value: Option<Id<ConstExprNode>>Explicit @value(n), if declared.
parent: Id<TypeNode>The enumeration this enumerator belongs to.
facets: FacetsPer-source information. Spec §4.
Trait Implementations§
Source§impl Clone for EnumeratorNode
impl Clone for EnumeratorNode
Source§impl Debug for EnumeratorNode
impl Debug for EnumeratorNode
impl Eq for EnumeratorNode
Source§impl PartialEq for EnumeratorNode
impl PartialEq for EnumeratorNode
impl StructuralPartialEq for EnumeratorNode
Auto Trait Implementations§
impl Freeze for EnumeratorNode
impl RefUnwindSafe for EnumeratorNode
impl Send for EnumeratorNode
impl Sync for EnumeratorNode
impl Unpin for EnumeratorNode
impl UnsafeUnpin for EnumeratorNode
impl UnwindSafe for EnumeratorNode
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