pub enum CborFloat {
Float16(f32),
Float32(f32),
Float64(f64),
}Expand description
An IEEE 754 floating point number (major type 7).
Variants§
Float16(f32)
IEEE 754 half-precision float.
WARNING: This may be broken right now. —AG
Float32(f32)
IEEE 754 single-precision float.
Float64(f64)
IEEE 754 double-precision float.
Implementations§
Trait Implementations§
Source§impl PartialOrd for CborFloat
impl PartialOrd for CborFloat
impl Copy for CborFloat
impl StructuralPartialEq for CborFloat
Auto Trait Implementations§
impl Freeze for CborFloat
impl RefUnwindSafe for CborFloat
impl Send for CborFloat
impl Sync for CborFloat
impl Unpin for CborFloat
impl UnwindSafe for CborFloat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)