pub struct JsonF64(/* private fields */);Expand description
A JSON-compatible f64.
JSON does not support representing NaN, inf, but rather only well-defined values. This
ensures the f64 is representable within JSON. We additionally limit to normal f64s to
achieve certain bounds.
Trait Implementations§
Source§impl JsonDeserialize for JsonF64
impl JsonDeserialize for JsonF64
Source§impl JsonSerialize for JsonF64
Available on crate feature ryu only.
impl JsonSerialize for JsonF64
Available on crate feature
ryu only.impl Copy for JsonF64
Auto Trait Implementations§
impl Freeze for JsonF64
impl RefUnwindSafe for JsonF64
impl Send for JsonF64
impl Sync for JsonF64
impl Unpin for JsonF64
impl UnwindSafe for JsonF64
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