pub enum NumberBase {
B,
O,
D,
X,
}Expand description
The numerical base of a parsed number token (e.g., Binary, Octal, Decimal, Hexadecimal).
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for NumberBase
impl Clone for NumberBase
Source§fn clone(&self) -> NumberBase
fn clone(&self) -> NumberBase
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 NumberBase
Source§impl Debug for NumberBase
impl Debug for NumberBase
impl Eq for NumberBase
Source§impl From<NumberBase> for u32
impl From<NumberBase> for u32
Source§fn from(val: NumberBase) -> Self
fn from(val: NumberBase) -> Self
Converts to this type from the input type.
Source§impl From<u32> for NumberBase
impl From<u32> for NumberBase
Source§impl Hash for NumberBase
impl Hash for NumberBase
Source§impl PartialEq for NumberBase
impl PartialEq for NumberBase
Source§fn eq(&self, other: &NumberBase) -> bool
fn eq(&self, other: &NumberBase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NumberBase
Auto Trait Implementations§
impl Freeze for NumberBase
impl RefUnwindSafe for NumberBase
impl Send for NumberBase
impl Sync for NumberBase
impl Unpin for NumberBase
impl UnsafeUnpin for NumberBase
impl UnwindSafe for NumberBase
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