pub struct GlobPattern(/* private fields */);Expand description
A case-sensitive byte glob, validated once before matching.
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
impl Eq for GlobPattern
Source§impl FromStr for GlobPattern
impl FromStr for GlobPattern
Source§impl PartialEq for GlobPattern
impl PartialEq for GlobPattern
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.