pub enum Number {
Show 26 variants
I8(i8),
I16(i16),
I32(i32),
I64(i64),
I128(i128),
Isize(isize),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
U128(u128),
Usize(usize),
NonZeroI8(NonZero<i8>),
NonZeroI16(NonZero<i16>),
NonZeroI32(NonZero<i32>),
NonZeroI64(NonZero<i64>),
NonZeroI128(NonZero<i128>),
NonZeroIsize(NonZero<isize>),
NonZeroU8(NonZero<u8>),
NonZeroU16(NonZero<u16>),
NonZeroU32(NonZero<u32>),
NonZeroU64(NonZero<u64>),
NonZeroU128(NonZero<u128>),
NonZeroUsize(NonZero<usize>),
F32(f32),
F64(f64),
}Variants§
I8(i8)
I16(i16)
I32(i32)
I64(i64)
I128(i128)
Isize(isize)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
Usize(usize)
NonZeroI8(NonZero<i8>)
NonZeroI16(NonZero<i16>)
NonZeroI32(NonZero<i32>)
NonZeroI64(NonZero<i64>)
NonZeroI128(NonZero<i128>)
NonZeroIsize(NonZero<isize>)
NonZeroU8(NonZero<u8>)
NonZeroU16(NonZero<u16>)
NonZeroU32(NonZero<u32>)
NonZeroU64(NonZero<u64>)
NonZeroU128(NonZero<u128>)
NonZeroUsize(NonZero<usize>)
F32(f32)
F64(f64)
Trait Implementations§
Source§impl PartialOrd for Number
impl PartialOrd for Number
impl Copy for Number
impl StructuralPartialEq for Number
Auto Trait Implementations§
impl Freeze for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Sync for Number
impl Unpin for Number
impl UnwindSafe for Number
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more