pub enum PathSelector {
All,
Any(Option<PathCount>),
AnyShortest,
AllShortest,
Shortest {
count: Option<PathCount>,
group: bool,
},
}Expand description
CIP-73 path selector prefix (<path search prefix>). PatternPath has
no selector when this is None – the path pattern is then
non-selective, equivalent to an implicit ALL.
Variants§
All
ALL [path mode] [PATH|PATHS] – also the implicit default.
Any(Option<PathCount>)
ANY [<number of paths>] [path mode] [PATH|PATHS]; None count
defaults to 1.
AnyShortest
ANY SHORTEST [path mode] [PATH|PATHS] – normalizes to SHORTEST 1 [path mode] PATH.
AllShortest
ALL SHORTEST [path mode] [PATH|PATHS] – normalizes to SHORTEST 1 [path mode] GROUP.
Shortest
SHORTEST <number of paths> [path mode] [PATH|PATHS] (group false)
or SHORTEST [<number of groups>] [path mode] [PATH|PATHS] (GROUP|GROUPS) (group true); count is None only in the GROUP
form (defaults to 1).
Trait Implementations§
Source§impl Clone for PathSelector
impl Clone for PathSelector
Source§impl Debug for PathSelector
impl Debug for PathSelector
Source§impl PartialEq for PathSelector
impl PartialEq for PathSelector
impl StructuralPartialEq for PathSelector
Auto Trait Implementations§
impl Forget for PathSelector
impl Freeze for PathSelector
impl Move 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