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 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 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.