pub struct Selector(pub Vec<Step>);Expand description
A description of locations: the root, narrowed step by step.
Tuple Fields§
§0: Vec<Step>Implementations§
Source§impl Selector
impl Selector
pub fn property(self, name: impl Into<Box<str>>) -> Selector
pub fn index(self, i: usize) -> Selector
pub fn each_index(self) -> Selector
pub fn each_member(self) -> Selector
Sourcepub fn compose(self, other: &Selector) -> Selector
pub fn compose(self, other: &Selector) -> Selector
self, then other below every location self names.
Sourcepub fn from_segments(segments: &[Segment]) -> Selector
pub fn from_segments(segments: &[Segment]) -> Selector
A selector naming exactly one location: as-path over data.
pub fn steps(&self) -> &[Step]
pub fn is_root(&self) -> bool
Sourcepub fn may_overlap(&self, other: &Selector) -> bool
pub fn may_overlap(&self, other: &Selector) -> bool
Whether this selector names a location strictly inside a location
other names, or the same one: the test a router uses to refuse
overlapping captures.
Trait Implementations§
impl Eq for Selector
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.