pub struct Glob { /* private fields */ }
Expand description
Glob
represents a glob pattern matcher with support for multi-pattern matching.
Implementations§
source§impl Glob
impl Glob
sourcepub fn new(glob: &str) -> Option<Self>
pub fn new(glob: &str) -> Option<Self>
Creates a new Glob
instance from a given glob pattern.
Returns Some(Glob)
if successful, None
otherwise.
§Example
use fast_glob::Glob;
let glob = Glob::new("*.txt");
assert!(glob.is_some());
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Glob
impl RefUnwindSafe for Glob
impl Send for Glob
impl Sync for Glob
impl Unpin for Glob
impl UnwindSafe for Glob
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