pub struct GlobPattern { /* private fields */ }
Implementations§
Source§impl GlobPattern
impl GlobPattern
pub fn new_if_pattern( pattern: &str, ) -> Result<Option<Self>, GlobPatternParseError>
pub fn new(pattern: &str) -> Result<Self, GlobPatternParseError>
pub fn from_relative( base: &Path, p: &str, ) -> Result<Self, GlobPatternParseError>
pub fn as_str(&self) -> Cow<'_, str>
pub fn matches_path(&self, path: &Path) -> PathGlobMatch
pub fn base_path(&self) -> PathBuf
pub fn is_negated(&self) -> bool
Trait Implementations§
Source§impl Clone for GlobPattern
impl Clone for GlobPattern
Source§fn clone(&self) -> GlobPattern
fn clone(&self) -> GlobPattern
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GlobPattern
impl Debug for GlobPattern
Source§impl Hash for GlobPattern
impl Hash for GlobPattern
Source§impl Ord for GlobPattern
impl Ord for GlobPattern
Source§fn cmp(&self, other: &GlobPattern) -> Ordering
fn cmp(&self, other: &GlobPattern) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GlobPattern
impl PartialEq for GlobPattern
Source§impl PartialOrd for GlobPattern
impl PartialOrd for GlobPattern
impl Eq 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 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.