pub enum NumKind {
Dec,
Hex,
Bin,
Oct,
Float,
}Expand description
The kind of a number.
Variants§
Dec
A plain decimal integer.
042
1_000_000Hex
A hexadecimal integer.
0x123456
0xabcdef
0xa_b_c_d_e_fBin
A binary integer.
0b0100_0001Oct
An octal integer.
0o01234567Float
A floating point number.
0.
0.42
4.2e1Trait Implementations§
impl Copy for NumKind
impl StructuralPartialEq for NumKind
Auto Trait Implementations§
impl Freeze for NumKind
impl RefUnwindSafe for NumKind
impl Send for NumKind
impl Sync for NumKind
impl Unpin for NumKind
impl UnwindSafe for NumKind
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