pub enum PathElem<'p> {
Key(&'p str),
Index(usize),
}Expand description
A path element for navigating inside a CBOR value.
The query engine supports map keys (text) and array indices.
Variants§
Trait Implementations§
impl<'p> Copy for PathElem<'p>
impl<'p> Eq for PathElem<'p>
impl<'p> StructuralPartialEq for PathElem<'p>
Auto Trait Implementations§
impl<'p> Freeze for PathElem<'p>
impl<'p> RefUnwindSafe for PathElem<'p>
impl<'p> Send for PathElem<'p>
impl<'p> Sync for PathElem<'p>
impl<'p> Unpin for PathElem<'p>
impl<'p> UnsafeUnpin for PathElem<'p>
impl<'p> UnwindSafe for PathElem<'p>
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