pub struct Float(/* private fields */);Expand description
A floating-point value stored in its shortest CBOR encoding form.
Internally stores the raw bits as either f16, f32, or f64,
preserving NaN payloads and the exact CBOR encoding.
Two Float values are equal iff they encode to the same CBOR bytes.
Implementations§
Trait Implementations§
Source§impl Ord for Float
impl Ord for Float
Source§impl PartialOrd for Float
impl PartialOrd for Float
impl Copy for Float
impl Eq for Float
impl StructuralPartialEq for Float
Auto Trait Implementations§
impl Freeze for Float
impl RefUnwindSafe for Float
impl Send for Float
impl Sync for Float
impl Unpin for Float
impl UnsafeUnpin for Float
impl UnwindSafe for Float
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