Enum cbor_event::ObjectKey
source · [−]Expand description
CBOR Object key, represents the possible supported values for a CBOR key in a CBOR Map.
Variants
Integer(u64)
Bytes(Vec<u8>)
Text(String)
Implementations
Trait Implementations
sourceimpl Deserialize for ObjectKey
impl Deserialize for ObjectKey
sourcefn deserialize<R: BufRead>(raw: &mut Deserializer<R>) -> Result<Self>
fn deserialize<R: BufRead>(raw: &mut Deserializer<R>) -> Result<Self>
method to implement to deserialise an object from the given
Deserializer. Read more
sourceimpl Ord for ObjectKey
impl Ord for ObjectKey
sourceimpl PartialOrd<ObjectKey> for ObjectKey
impl PartialOrd<ObjectKey> for ObjectKey
sourcefn partial_cmp(&self, other: &ObjectKey) -> Option<Ordering>
fn partial_cmp(&self, other: &ObjectKey) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl Serialize for ObjectKey
impl Serialize for ObjectKey
fn serialize<'se, W: Write + Sized>(
&self,
serializer: &'se mut Serializer<W>
) -> Result<&'se mut Serializer<W>>
impl Eq for ObjectKey
impl StructuralEq for ObjectKey
impl StructuralPartialEq for ObjectKey
Auto Trait Implementations
impl RefUnwindSafe for ObjectKey
impl Send for ObjectKey
impl Sync for ObjectKey
impl Unpin for ObjectKey
impl UnwindSafe for ObjectKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more