pub struct PathSelectionRules { /* private fields */ }Expand description
Canonical include/glob/ignore semantics for logical world paths.
Paths use relative /-separated logical names. Absolute paths, parent
traversal, backslashes, empty components, and . components are refused so
host path spelling cannot enter semantic identity. Includes form a union;
ignores subtract from it.
Implementations§
Source§impl PathSelectionRules
impl PathSelectionRules
Sourcepub fn new(
includes: impl IntoIterator<Item = String>,
ignores: impl IntoIterator<Item = String>,
) -> Result<Self, ProjectionError>
pub fn new( includes: impl IntoIterator<Item = String>, ignores: impl IntoIterator<Item = String>, ) -> Result<Self, ProjectionError>
Checks and canonicalizes an explicit ordered rule set.
Sourcepub fn select(
&self,
paths: impl IntoIterator<Item = String>,
) -> Result<BTreeSet<FactId>, ProjectionError>
pub fn select( &self, paths: impl IntoIterator<Item = String>, ) -> Result<BTreeSet<FactId>, ProjectionError>
Selects exact logical path fact identities in canonical order.
Trait Implementations§
Source§impl Clone for PathSelectionRules
impl Clone for PathSelectionRules
Source§fn clone(&self) -> PathSelectionRules
fn clone(&self) -> PathSelectionRules
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 PathSelectionRules
impl Debug for PathSelectionRules
impl Eq for PathSelectionRules
Source§impl PartialEq for PathSelectionRules
impl PartialEq for PathSelectionRules
impl StructuralPartialEq for PathSelectionRules
Auto Trait Implementations§
impl Freeze for PathSelectionRules
impl RefUnwindSafe for PathSelectionRules
impl Send for PathSelectionRules
impl Sync for PathSelectionRules
impl Unpin for PathSelectionRules
impl UnsafeUnpin for PathSelectionRules
impl UnwindSafe for PathSelectionRules
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