pub struct GlobPattern(/* private fields */);Expand description
A case-sensitive glob predicate, validated before any filesystem access.
Implementations§
Source§impl GlobPattern
impl GlobPattern
Sourcepub fn matches_path(&self, path: &Path) -> bool
pub fn matches_path(&self, path: &Path) -> bool
Match the entire supplied spelling, normalizing Windows separators only.
Sourcepub fn matches_filename(&self, path: &Path) -> bool
pub fn matches_filename(&self, path: &Path) -> bool
Match only the filename; paths without one do not match.
Trait Implementations§
Source§impl Clone for GlobPattern
impl Clone for GlobPattern
Source§impl Debug for GlobPattern
impl Debug for GlobPattern
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