pub enum PathSegment {
Field(&'static str),
Variant(&'static str, &'static str),
}Expand description
A segment in a field path.
Variants§
Field(&'static str)
A regular struct field
Variant(&'static str, &'static str)
An enum variant selection (field_name, variant_name)
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 Hash for PathSegment
impl Hash for PathSegment
Source§impl Ord for PathSegment
impl Ord for PathSegment
Source§fn cmp(&self, other: &PathSegment) -> Ordering
fn cmp(&self, other: &PathSegment) -> 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 PathSegment
impl PartialEq for PathSegment
Source§impl PartialOrd for PathSegment
impl PartialOrd for PathSegment
impl Eq for PathSegment
impl StructuralPartialEq for PathSegment
Auto Trait Implementations§
impl Freeze for PathSegment
impl RefUnwindSafe for PathSegment
impl Send for PathSegment
impl Sync for PathSegment
impl Unpin 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