pub struct Enumerator {
pub name: Symbol,
pub value: i128,
}Expand description
One enumerator of an enumeration.
Fields§
§name: SymbolThe name the program wrote.
value: i128Its value, in the enumeration’s underlying type.
Held as an i128 because the value is worked out before the underlying type is chosen,
and because the widest enumeration a target has still has to fit in something wider than
itself while the list is being read.
Trait Implementations§
Source§impl Clone for Enumerator
impl Clone 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