pub enum PathElement {
Key(String),
ArrayIndex(ArrayIndex),
}
Variants§
Key(String)
ArrayIndex(ArrayIndex)
Trait Implementations§
Source§impl Clone for PathElement
impl Clone for PathElement
Source§fn clone(&self) -> PathElement
fn clone(&self) -> PathElement
Returns a copy 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 PathElement
impl Debug for PathElement
Source§impl FromIterator<PathElement> for Path
impl FromIterator<PathElement> for Path
Source§fn from_iter<T: IntoIterator<Item = PathElement>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PathElement>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Ord for PathElement
impl Ord for PathElement
Source§fn cmp(&self, other: &PathElement) -> Ordering
fn cmp(&self, other: &PathElement) -> 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 PathElement
impl PartialEq for PathElement
Source§impl PartialOrd for PathElement
impl PartialOrd for PathElement
impl Eq for PathElement
impl StructuralPartialEq for PathElement
Auto Trait Implementations§
impl Freeze for PathElement
impl RefUnwindSafe for PathElement
impl Send for PathElement
impl Sync for PathElement
impl Unpin for PathElement
impl UnwindSafe for PathElement
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