Enum cbor_diag::FloatWidth
source · pub enum FloatWidth {
Unknown,
Sixteen,
ThirtyTwo,
SixtyFour,
}
Expand description
How many additional bytes are used to encode this float (in bits).
See RFC 7049 § 2.
Variants§
Unknown
Parsed from CBOR diagnostic notation without an encoding indicator
Sixteen
Two additional bytes
ThirtyTwo
Four additional bytes
SixtyFour
Eight additional bytes
Trait Implementations§
source§impl Clone for FloatWidth
impl Clone for FloatWidth
source§fn clone(&self) -> FloatWidth
fn clone(&self) -> FloatWidth
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FloatWidth
impl Debug for FloatWidth
source§impl PartialEq<FloatWidth> for FloatWidth
impl PartialEq<FloatWidth> for FloatWidth
source§fn eq(&self, other: &FloatWidth) -> bool
fn eq(&self, other: &FloatWidth) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FloatWidth
impl Eq for FloatWidth
impl StructuralEq for FloatWidth
impl StructuralPartialEq for FloatWidth
Auto Trait Implementations§
impl RefUnwindSafe for FloatWidth
impl Send for FloatWidth
impl Sync for FloatWidth
impl Unpin for FloatWidth
impl UnwindSafe for FloatWidth
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