pub struct GlobPattern(/* private fields */);Expand description
A compiled DEP-5 glob pattern that can efficiently match many paths.
The pattern uses the glob syntax defined by the DEP-5 specification:
* matches any sequence of characters, ? matches a single character,
and backslash escapes *, ? and \.
§Examples
let pat = debian_copyright::GlobPattern::new("src/*.rs");
assert!(pat.is_match("src/main.rs"));
assert!(!pat.is_match("lib/main.rs"));Implementations§
Auto Trait Implementations§
impl Freeze for GlobPattern
impl RefUnwindSafe for GlobPattern
impl Send for GlobPattern
impl Sync for GlobPattern
impl Unpin for GlobPattern
impl UnsafeUnpin for GlobPattern
impl UnwindSafe for GlobPattern
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