pub struct Enumerator {
pub name: Ident,
pub value: Option<Expr>,
pub range: SourceRange,
}Expand description
One enum constant.
Fields§
§name: IdentThe constant’s name.
value: Option<Expr>Its explicit value, if given.
range: SourceRangeWhere it was written.
Trait Implementations§
Source§impl Clone for Enumerator
impl Clone for Enumerator
Source§impl Debug for Enumerator
impl Debug 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