pub struct Matcher<'a, P>{ /* private fields */ }Expand description
Matcher type for transformation into an iterator.
This type exists such that Builder::build can return a result type (whereas into_iter
cannot). Notice that iter() is not implemented due to the use of references.
Implementations§
Source§impl<'a, P> Matcher<'a, P>
impl<'a, P> Matcher<'a, P>
Sourcepub fn glob(&self) -> &str
pub fn glob(&self) -> &str
Provides the original glob-pattern used to create this Matcher.
This is the unchanged glob, i.e., no relative path components have been resolved.
Sourcepub fn root(&self) -> String
pub fn root(&self) -> String
Provides the resolved root folder used by the Matcher.
This directory already contains the path components from the original glob. The main intention of this function is to for debugging or logging (thus a String).
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for Matcher<'a, P>where
P: Freeze,
impl<'a, P> RefUnwindSafe for Matcher<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for Matcher<'a, P>where
P: Send,
impl<'a, P> Sync for Matcher<'a, P>where
P: Sync,
impl<'a, P> Unpin for Matcher<'a, P>where
P: Unpin,
impl<'a, P> UnwindSafe for Matcher<'a, P>where
P: UnwindSafe,
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