Enum cbor_diag::IntegerWidth
source · pub enum IntegerWidth {
Unknown,
Zero,
Eight,
Sixteen,
ThirtyTwo,
SixtyFour,
}
Expand description
How many additional bytes are used to encode this integer (in bits).
See RFC 7049 § 2.
Variants§
Unknown
Parsed from CBOR diagnostic notation without an encoding indicator
Zero
For values <24 encoded directly in the additional data of the first byte
Eight
One additional byte
Sixteen
Two additional bytes
ThirtyTwo
Four additional bytes
SixtyFour
Eight additional bytes
Trait Implementations§
source§impl Clone for IntegerWidth
impl Clone for IntegerWidth
source§fn clone(&self) -> IntegerWidth
fn clone(&self) -> IntegerWidth
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 IntegerWidth
impl Debug for IntegerWidth
source§impl PartialEq<IntegerWidth> for IntegerWidth
impl PartialEq<IntegerWidth> for IntegerWidth
source§fn eq(&self, other: &IntegerWidth) -> bool
fn eq(&self, other: &IntegerWidth) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IntegerWidth
impl Eq for IntegerWidth
impl StructuralEq for IntegerWidth
impl StructuralPartialEq for IntegerWidth
Auto Trait Implementations§
impl RefUnwindSafe for IntegerWidth
impl Send for IntegerWidth
impl Sync for IntegerWidth
impl Unpin for IntegerWidth
impl UnwindSafe for IntegerWidth
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