pub enum PathSegment<'a> {
Key(&'a str),
Index(usize),
}Expand description
A segment in a path expression.
Variants§
Implementations§
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 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<'a> Debug for PathSegment<'a>
impl<'a> Debug for PathSegment<'a>
Source§impl<'a> PartialEq for PathSegment<'a>
impl<'a> PartialEq for PathSegment<'a>
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> 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