pub enum ParameterPathSegment {
Field(&'static str),
Variant(&'static str),
TupleIndex(usize),
Index(usize),
Key(String),
}Expand description
Segment in a ParameterPath. Parameterized::named_parameters, Parameterized::named_parameters_mut,
and Parameterized::into_named_parameters produce paths that are made out of ParameterPathSegments.
Variants§
Field(&'static str)
Field in a struct.
Variant(&'static str)
Variant of an enum.
TupleIndex(usize)
Index/position in a tuple.
Index(usize)
Index/position in indexable containers (e.g., arrays and Vec).
Key(String)
Trait Implementations§
Source§impl Clone for ParameterPathSegment
impl Clone for ParameterPathSegment
Source§fn clone(&self) -> ParameterPathSegment
fn clone(&self) -> ParameterPathSegment
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 ParameterPathSegment
impl Debug for ParameterPathSegment
Source§impl Hash for ParameterPathSegment
impl Hash for ParameterPathSegment
Source§impl Ord for ParameterPathSegment
impl Ord for ParameterPathSegment
Source§fn cmp(&self, other: &ParameterPathSegment) -> Ordering
fn cmp(&self, other: &ParameterPathSegment) -> 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 ParameterPathSegment
impl PartialEq for ParameterPathSegment
Source§impl PartialOrd for ParameterPathSegment
impl PartialOrd for ParameterPathSegment
impl Eq for ParameterPathSegment
impl StructuralPartialEq for ParameterPathSegment
Auto Trait Implementations§
impl Freeze for ParameterPathSegment
impl RefUnwindSafe for ParameterPathSegment
impl Send for ParameterPathSegment
impl Sync for ParameterPathSegment
impl Unpin for ParameterPathSegment
impl UnsafeUnpin for ParameterPathSegment
impl UnwindSafe for ParameterPathSegment
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