#[repr(u8)]pub enum PathSelector {
Exact {
segments: Vec<PathSegment>,
},
Tree {
segments: Vec<PathSegment>,
},
Segments {
segments: Vec<PathSegment>,
},
}Expand description
A repository-relative path selector. Matching is case-sensitive and uses
/ separated UTF-8 path segments.
Variants§
Exact
Matches only the exact sequence of literal segments.
Fields
§
segments: Vec<PathSegment>The literal segments the path must equal.
Tree
Matches the segments as a tree root: the path or any descendant.
Fields
§
segments: Vec<PathSegment>The segments the path or an ancestor must equal.
Segments
Matches the segments positionally, allowing wildcards.
Fields
§
segments: Vec<PathSegment>The segment patterns the path must match one-for-one.
Implementations§
Source§impl PathSelector
impl PathSelector
Trait Implementations§
Source§impl Clone for PathSelector
impl Clone for PathSelector
Source§fn clone(&self) -> PathSelector
fn clone(&self) -> PathSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PathSelector
impl Debug for PathSelector
impl Eq for PathSelector
Source§impl<'ʄ> Facet<'ʄ> for PathSelector
impl<'ʄ> Facet<'ʄ> for PathSelector
Source§impl PartialEq for PathSelector
impl PartialEq for PathSelector
impl StructuralPartialEq for PathSelector
Auto Trait Implementations§
impl Freeze for PathSelector
impl RefUnwindSafe for PathSelector
impl Send for PathSelector
impl Sync for PathSelector
impl Unpin for PathSelector
impl UnsafeUnpin for PathSelector
impl UnwindSafe for PathSelector
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> 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.