pub enum NumberKind {
Integer,
Decimal,
NotFinite,
}Expand description
What a number’s spelling says about it.
Variants§
Integer
Digits only, with an optional minus, and not -0.
Decimal
A fraction, an exponent or -0.
NotFinite
NaN or an infinity, which JSON cannot spell; only a recovering reader makes one.
Trait Implementations§
Source§impl Clone for NumberKind
impl Clone for NumberKind
impl Copy for NumberKind
Source§impl Debug for NumberKind
impl Debug for NumberKind
impl Eq for NumberKind
Source§impl PartialEq for NumberKind
impl PartialEq for NumberKind
impl StructuralPartialEq for NumberKind
Auto Trait Implementations§
impl Forget for NumberKind
impl Freeze for NumberKind
impl Move for NumberKind
impl RefUnwindSafe for NumberKind
impl Send for NumberKind
impl Sync for NumberKind
impl Unpin for NumberKind
impl UnsafeUnpin for NumberKind
impl UnwindSafe for NumberKind
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