Enum donet_core::dctype::DCNumber
source · pub enum DCNumber {
Integer(i64),
UnsignedInteger(u64),
FloatingPoint(f64),
}
Variants§
Trait Implementations§
source§impl From<DCNumber> for f64
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
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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)