pub struct PathMatcher {
pub is_negated: bool,
/* private fields */
}Expand description
[POL]: Struktura odpowiedzialna za dopasowanie pojedynczego wzorca z uwzględnieniem zależności strukturalnych. [ENG]: Structure responsible for matching a single pattern considering structural dependencies.
Fields§
§is_negated: boolImplementations§
Source§impl PathMatcher
impl PathMatcher
pub fn new(pattern: &str, case_sensitive: bool) -> Result<Self, Error>
Sourcepub fn is_match(&self, path: &str, env: &HashSet<&str>) -> bool
pub fn is_match(&self, path: &str, env: &HashSet<&str>) -> bool
[POL]: Sprawdza dopasowanie ścieżki, uwzględniając relacje rodzeństwa w strukturze plików. [ENG]: Validates path matching, considering sibling relations within the file structure.
Sourcepub fn evaluate<I, S, OnMatch, OnMismatch>(
&self,
paths: I,
env: &HashSet<&str>,
strategy: SortStrategy,
show_mode: ShowMode,
on_match: OnMatch,
on_mismatch: OnMismatch,
) -> MatchStats
pub fn evaluate<I, S, OnMatch, OnMismatch>( &self, paths: I, env: &HashSet<&str>, strategy: SortStrategy, show_mode: ShowMode, on_match: OnMatch, on_mismatch: OnMismatch, ) -> MatchStats
[POL]: Ewaluuje kolekcję ścieżek, sortuje wyniki i wywołuje odpowiednie akcje. [ENG]: Evaluates a path collection, sorts the results, and triggers respective actions.
Auto Trait Implementations§
impl Freeze for PathMatcher
impl RefUnwindSafe for PathMatcher
impl Send for PathMatcher
impl Sync for PathMatcher
impl Unpin for PathMatcher
impl UnsafeUnpin for PathMatcher
impl UnwindSafe for PathMatcher
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