pub enum PathSegment {
Empty,
Field(&'static str),
Index(usize),
}Expand description
PathSegment
Variants§
Trait Implementations§
Source§impl Clone for PathSegment
impl Clone for PathSegment
Source§fn clone(&self) -> PathSegment
fn clone(&self) -> PathSegment
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 Debug for PathSegment
impl Debug for PathSegment
Source§impl From<&'static str> for PathSegment
impl From<&'static str> for PathSegment
Source§fn from(s: &'static str) -> PathSegment
fn from(s: &'static str) -> PathSegment
Converts to this type from the input type.
Source§impl From<usize> for PathSegment
impl From<usize> for PathSegment
Source§fn from(i: usize) -> PathSegment
fn from(i: usize) -> PathSegment
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin for PathSegment
impl UnsafeUnpin for PathSegment
impl UnwindSafe for PathSegment
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