pub struct RuleSet { /* private fields */ }Expand description
A set of loaded rules with a pre-built GlobSet for fast path matching.
Implementations§
Source§impl RuleSet
impl RuleSet
Sourcepub fn always_active(&self) -> Vec<&Rule>
pub fn always_active(&self) -> Vec<&Rule>
Rules that have no paths: filter — always loaded into the prompt.
Sourcepub fn matching(&self, path: &Path) -> Vec<usize>
pub fn matching(&self, path: &Path) -> Vec<usize>
Return the indexes of every rule whose paths: filter matches
path. Always-active rules (no paths: filter) are not returned here
— they’re loaded eagerly via Self::always_active.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleSet
impl RefUnwindSafe for RuleSet
impl Send for RuleSet
impl Sync for RuleSet
impl Unpin for RuleSet
impl UnsafeUnpin for RuleSet
impl UnwindSafe for RuleSet
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