pub struct CBORObject { /* private fields */ }Implementations§
Source§impl CBORObject
impl CBORObject
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn insert( &mut self, key: &CBORValue, value: &CBORValue, ) -> Option<CBORValue>
pub fn get(&self, key: &CBORValue) -> Option<CBORValue>
pub fn keys(&self) -> CBORArray
pub fn set_definite_encoding(&mut self, use_definite: bool)
pub fn is_definite(&self) -> bool
Trait Implementations§
Source§impl Clone for CBORObject
impl Clone for CBORObject
Source§fn clone(&self) -> CBORObject
fn clone(&self) -> CBORObject
Returns a duplicate 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 CBORObject
impl Debug for CBORObject
Source§impl Deserialize for CBORObject
impl Deserialize for CBORObject
fn deserialize<R: BufRead + Seek>( raw: &mut Deserializer<R>, ) -> Result<Self, DeserializeError>
Source§impl FromBytes for CBORObject
impl FromBytes for CBORObject
fn from_bytes(bytes: Vec<u8>) -> Result<CBORObject, DeserializeError>
Source§impl Hash for CBORObject
impl Hash for CBORObject
Source§impl Ord for CBORObject
impl Ord for CBORObject
Source§fn cmp(&self, other: &CBORObject) -> Ordering
fn cmp(&self, other: &CBORObject) -> 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 CBORObject
impl PartialEq for CBORObject
Source§impl PartialOrd for CBORObject
impl PartialOrd for CBORObject
Source§impl Serialize for CBORObject
impl Serialize for CBORObject
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
impl Eq for CBORObject
impl StructuralPartialEq for CBORObject
Auto Trait Implementations§
impl Freeze for CBORObject
impl RefUnwindSafe for CBORObject
impl Send for CBORObject
impl Sync for CBORObject
impl Unpin for CBORObject
impl UnwindSafe for CBORObject
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