Enum cbor_data::PathElement
source · [−]Expand description
Path elements for indexing into CBOR structures
Variants
String(Cow<'a, str>)
matches only text string dictionary keys encoded as major type 3
Number(u64)
matches only array indices or numeric dictionary keys encoded as major type 0
Item(Cow<'a, Cbor>)
matches only dictionary keys of exactly the byte sequence as this element
Trait Implementations
sourceimpl<'a> Clone for PathElement<'a>
impl<'a> Clone for PathElement<'a>
sourcefn clone(&self) -> PathElement<'a>
fn clone(&self) -> PathElement<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'a> Debug for PathElement<'a>
impl<'a> Debug for PathElement<'a>
sourceimpl<'a> PartialEq<PathElement<'a>> for PathElement<'a>
impl<'a> PartialEq<PathElement<'a>> for PathElement<'a>
sourcefn eq(&self, other: &PathElement<'a>) -> bool
fn eq(&self, other: &PathElement<'a>) -> bool
impl<'a> StructuralPartialEq for PathElement<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PathElement<'a>
impl<'a> Send for PathElement<'a>
impl<'a> Sync for PathElement<'a>
impl<'a> Unpin for PathElement<'a>
impl<'a> UnwindSafe for PathElement<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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