pub enum PathElement<'a> {
String(Cow<'a, str>),
Number(u64),
Item(Cow<'a, Cbor>),
}
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§
Source§impl<'a> Clone for PathElement<'a>
impl<'a> Clone for PathElement<'a>
Source§fn clone(&self) -> PathElement<'a>
fn clone(&self) -> PathElement<'a>
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<'a> Debug for PathElement<'a>
impl<'a> Debug for PathElement<'a>
Source§impl<'a> PartialEq for PathElement<'a>
impl<'a> PartialEq for PathElement<'a>
impl<'a> StructuralPartialEq for PathElement<'a>
Auto Trait Implementations§
impl<'a> Freeze for PathElement<'a>
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§
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