pub enum SelectorPathItem {
    Type(ValueType),
    Index(usize),
    Key(String),
    Wildcard,
    DeepWildcard,
}Expand description
A path component in a composit SelectorSpec.
Variants§
Type(ValueType)
The component refers to a value type.
Index(usize)
The component refers to an array index.
Key(String)
The component refers to a key in an object.
Wildcard
The component is a shallow wildcard (*).
DeepWildcard
The component is a deep wildcard (**).
Trait Implementations§
Source§impl Clone for SelectorPathItem
 
impl Clone for SelectorPathItem
Source§fn clone(&self) -> SelectorPathItem
 
fn clone(&self) -> SelectorPathItem
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 SelectorPathItem
 
impl Debug for SelectorPathItem
Source§impl Display for SelectorPathItem
 
impl Display for SelectorPathItem
Source§impl Ord for SelectorPathItem
 
impl Ord for SelectorPathItem
Source§fn cmp(&self, other: &SelectorPathItem) -> Ordering
 
fn cmp(&self, other: &SelectorPathItem) -> 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 SelectorPathItem
 
impl PartialEq for SelectorPathItem
Source§impl PartialOrd for SelectorPathItem
 
impl PartialOrd for SelectorPathItem
impl Eq for SelectorPathItem
impl StructuralPartialEq for SelectorPathItem
Auto Trait Implementations§
impl Freeze for SelectorPathItem
impl RefUnwindSafe for SelectorPathItem
impl Send for SelectorPathItem
impl Sync for SelectorPathItem
impl Unpin for SelectorPathItem
impl UnwindSafe for SelectorPathItem
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
    T: ?Sized,
 
impl<T> PolicyExt for Twhere
    T: ?Sized,
§impl<T> ToStringFallible for Twhere
    T: Display,
 
impl<T> ToStringFallible for Twhere
    T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
 
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.