pub struct Pattern { /* private fields */ }Implementations§
Source§impl Pattern
impl Pattern
Sourcepub fn new(pattern: &str, negated: bool) -> Result<Self>
pub fn new(pattern: &str, negated: bool) -> Result<Self>
Compiles a glob without its leading !; negated says whether one was
there. Nx expands every negated pattern, and every glob it expands to
then excludes, so a negated pattern matches what any of them matches.
As in Nx, \ escapes the character after it on every platform.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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