pub enum DCNumber {
Integer(i64),
UnsignedInteger(u64),
FloatingPoint(f64),
}Variants§
Trait Implementations§
Source§impl From<DCNumber> for f64
Converts a DCNumber to an f64 primitive type.
impl From<DCNumber> for f64
Converts a DCNumber to an f64 primitive type.
Panics if DCNumber is not of variant FloatingPoint.
Source§impl From<DCNumber> for i64
Converts a DCNumber to an i64 primitive type.
impl From<DCNumber> for i64
Converts a DCNumber to an i64 primitive type.
Panics if DCNumber is not of variant Integer.
Source§impl From<DCNumber> for u64
Converts a DCNumber to an u64 primitive type.
impl From<DCNumber> for u64
Converts a DCNumber to an u64 primitive type.
Panics if DCNumber is not of variant UnsignedInteger.
impl Copy for DCNumber
impl StructuralPartialEq for DCNumber
Auto Trait Implementations§
impl Freeze for DCNumber
impl RefUnwindSafe for DCNumber
impl Send for DCNumber
impl Sync for DCNumber
impl Unpin for DCNumber
impl UnwindSafe for DCNumber
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