pub enum PathSegment<'a> {
Index(usize),
Key(Cow<'a, str>),
}Variants§
Trait Implementations§
Source§impl<'a> Clone for PathSegment<'a>
impl<'a> Clone for PathSegment<'a>
Source§fn clone(&self) -> PathSegment<'a>
fn clone(&self) -> PathSegment<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PathSegment<'a>
impl<'a> Debug for PathSegment<'a>
Source§impl Display for PathSegment<'_>
impl Display for PathSegment<'_>
impl<'a> Eq for PathSegment<'a>
Source§impl<'a> PartialEq for PathSegment<'a>
impl<'a> PartialEq for PathSegment<'a>
Source§fn eq(&self, other: &PathSegment<'a>) -> bool
fn eq(&self, other: &PathSegment<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for PathSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for PathSegment<'a>
impl<'a> RefUnwindSafe for PathSegment<'a>
impl<'a> Send for PathSegment<'a>
impl<'a> Sync for PathSegment<'a>
impl<'a> Unpin for PathSegment<'a>
impl<'a> UnsafeUnpin for PathSegment<'a>
impl<'a> UnwindSafe for PathSegment<'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