pub enum SimpleValue {
FalseValue = 20,
TrueValue = 21,
NullValue = 22,
Undefined = 23,
}
Expand description
Specific simple CBOR values.
Variants§
Implementations§
Source§impl SimpleValue
impl SimpleValue
Sourcepub fn from_integer(int: u64) -> Option<SimpleValue>
pub fn from_integer(int: u64) -> Option<SimpleValue>
Create a simple value from its encoded value.
Trait Implementations§
Source§impl Clone for SimpleValue
impl Clone for SimpleValue
Source§fn clone(&self) -> SimpleValue
fn clone(&self) -> SimpleValue
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 SimpleValue
impl Debug for SimpleValue
Source§impl Ord for SimpleValue
impl Ord for SimpleValue
Source§fn cmp(&self, other: &SimpleValue) -> Ordering
fn cmp(&self, other: &SimpleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SimpleValue
impl PartialEq for SimpleValue
Source§impl PartialOrd for SimpleValue
impl PartialOrd for SimpleValue
impl Eq for SimpleValue
impl StructuralPartialEq for SimpleValue
Auto Trait Implementations§
impl Freeze for SimpleValue
impl RefUnwindSafe for SimpleValue
impl Send for SimpleValue
impl Sync for SimpleValue
impl Unpin for SimpleValue
impl UnwindSafe for SimpleValue
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