Enum json_with_comments::value::number::Number
source · pub enum Number<I, F> {
Integer(I),
Float(F),
}
Variants§
Trait Implementations§
source§impl<'de, I, F> Deserialize<'de> for Number<I, F>where
I: FromPrimitive,
F: FromPrimitive,
impl<'de, I, F> Deserialize<'de> for Number<I, F>where
I: FromPrimitive,
F: FromPrimitive,
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<I, F> From<Number<I, F>> for JsoncValue<I, F>
impl<I, F> From<Number<I, F>> for JsoncValue<I, F>
source§impl<I, F> FromNumberBuilder for Number<I, F>
impl<I, F> FromNumberBuilder for Number<I, F>
type Err = JsonWithCommentsError
fn from_number_builder(builder: NumberBuilder) -> Result<Self, Self::Err>
source§impl<I: PartialEq, F: PartialEq> PartialEq for Number<I, F>
impl<I: PartialEq, F: PartialEq> PartialEq for Number<I, F>
source§impl<I: PartialOrd, F: PartialOrd> PartialOrd for Number<I, F>
impl<I: PartialOrd, F: PartialOrd> PartialOrd for Number<I, F>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<I, F> TryFrom<JsoncValue<I, F>> for Number<I, F>
impl<I, F> TryFrom<JsoncValue<I, F>> for Number<I, F>
§type Error = JsonWithCommentsError
type Error = JsonWithCommentsError
The type returned in the event of a conversion error.
impl<I, F> StructuralPartialEq for Number<I, F>
Auto Trait Implementations§
impl<I, F> RefUnwindSafe for Number<I, F>where
F: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, F> Send for Number<I, F>
impl<I, F> Sync for Number<I, F>
impl<I, F> Unpin for Number<I, F>
impl<I, F> UnwindSafe for Number<I, F>where
F: UnwindSafe,
I: UnwindSafe,
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