[−][src]Trait pathpatterns::MatchList
This provides matches
and matches_exact
methods to lists of MatchEntry
s.
Technically this is implemented for anything you can turn into a DoubleEndedIterator
over
MatchEntry
or &MatchEntry
.
In practice this means you can use it with slices or references to Vec
or VecDeque
etc.
This makes it easier to use slices over entries or references to entries.
Required methods
fn matches_do(&self, path: &[u8], file_mode: Option<u32>) -> Option<MatchType>
fn matches_exact_do(
&self,
path: &[u8],
file_mode: Option<u32>
) -> Option<MatchType>
&self,
path: &[u8],
file_mode: Option<u32>
) -> Option<MatchType>
Provided methods
fn matches<T: AsRef<[u8]>>(
&self,
path: T,
file_mode: Option<u32>
) -> Option<MatchType>
&self,
path: T,
file_mode: Option<u32>
) -> Option<MatchType>
Check whether this list contains anything matching a prefix of the specified path, and the specified file mode.
fn matches_exact<T: AsRef<[u8]>>(
&self,
path: T,
file_mode: Option<u32>
) -> Option<MatchType>
&self,
path: T,
file_mode: Option<u32>
) -> Option<MatchType>
Check whether this list contains anything exactly matching the path and mode.
Implementors
impl<'a, T: ?Sized> MatchList for T where
T: 'a,
&'a T: IntoIterator,
<&'a T as IntoIterator>::IntoIter: DoubleEndedIterator,
<&'a T as IntoIterator>::Item: MatchListEntry,
[src]
T: 'a,
&'a T: IntoIterator,
<&'a T as IntoIterator>::IntoIter: DoubleEndedIterator,
<&'a T as IntoIterator>::Item: MatchListEntry,