pub enum Base {
Dec,
Hex,
Bin,
Oct,
}Expand description
The numeric base used when displaying integer-valued scalars.
Variants§
Dec
Decimal (base 10) — the default.
Hex
Hexadecimal (base 16), prefix 0x (e.g. 0xff).
Bin
Binary (base 2), prefix 0b (e.g. 0b1010).
Oct
Octal (base 8), prefix 0o (e.g. 0o17).
Trait Implementations§
impl Copy for Base
impl StructuralPartialEq for Base
Auto Trait Implementations§
impl Freeze for Base
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnsafeUnpin for Base
impl UnwindSafe for Base
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