pub struct Enumerator {
pub name: Symbol,
pub value: Option<ExprId>,
pub attrs: AttrList,
pub span: Span,
}Expand description
One enumerator of an enumeration.
Fields§
§name: SymbolThe name, which goes into the ordinary identifier namespace and not the tag one.
value: Option<ExprId>The = value, if there was one.
attrs: AttrListAttributes on this enumerator, which C23 allows.
span: SpanThe whole enumerator.
Trait Implementations§
Source§impl Clone for Enumerator
impl Clone for Enumerator
Source§fn clone(&self) -> Enumerator
fn clone(&self) -> Enumerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Enumerator
Source§impl Debug for Enumerator
impl Debug for Enumerator
impl Eq for Enumerator
Source§impl PartialEq for Enumerator
impl PartialEq for Enumerator
impl StructuralPartialEq for Enumerator
Auto Trait Implementations§
impl Freeze for Enumerator
impl RefUnwindSafe for Enumerator
impl Send for Enumerator
impl Sync for Enumerator
impl Unpin for Enumerator
impl UnsafeUnpin for Enumerator
impl UnwindSafe for Enumerator
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