pub enum JsonNum {
Int(i128),
Float(f64),
}Variants§
Implementations§
Source§impl JsonNum
impl JsonNum
Sourcepub fn unwrap_int(&self) -> i128
pub fn unwrap_int(&self) -> i128
use on JsonNum::Int to get value.
will panic if used on other type.
Sourcepub fn unwrap_float(&self) -> f64
pub fn unwrap_float(&self) -> f64
use on JsonNum::Float to get value.
will panic if used on other type.
Trait Implementations§
impl StructuralPartialEq for JsonNum
Auto Trait Implementations§
impl Freeze for JsonNum
impl RefUnwindSafe for JsonNum
impl Send for JsonNum
impl Sync for JsonNum
impl Unpin for JsonNum
impl UnsafeUnpin for JsonNum
impl UnwindSafe for JsonNum
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