pub enum NumericPrimitive {
UInteger(usize),
Integer(i64),
Float(f64),
}
Expand description
Various kinds of number.
Variants§
Trait Implementations§
source§impl Clone for NumericPrimitive
impl Clone for NumericPrimitive
source§fn clone(&self) -> NumericPrimitive
fn clone(&self) -> NumericPrimitive
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NumericPrimitive
impl Debug for NumericPrimitive
source§impl<'de> Deserialize<'de> for NumericPrimitive
impl<'de> Deserialize<'de> for NumericPrimitive
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<NumericPrimitive> for f64
impl From<NumericPrimitive> for f64
source§fn from(value: NumericPrimitive) -> Self
fn from(value: NumericPrimitive) -> Self
Converts to this type from the input type.
source§impl PartialEq for NumericPrimitive
impl PartialEq for NumericPrimitive
source§fn eq(&self, other: &NumericPrimitive) -> bool
fn eq(&self, other: &NumericPrimitive) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NumericPrimitive
impl Serialize for NumericPrimitive
impl StructuralPartialEq for NumericPrimitive
Auto Trait Implementations§
impl Freeze for NumericPrimitive
impl RefUnwindSafe for NumericPrimitive
impl Send for NumericPrimitive
impl Sync for NumericPrimitive
impl Unpin for NumericPrimitive
impl UnwindSafe for NumericPrimitive
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