pub struct TinyGlobSet { /* private fields */ }Expand description
A lightweight glob set that trades query speed for fast construction.
See the module docs for guidance on when to choose this over
GlobSet.
Implementations§
Source§impl TinyGlobSet
impl TinyGlobSet
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_match(&self, path: impl AsRef<str>) -> bool
pub fn is_match_candidate(&self, candidate: &Candidate<'_>) -> bool
pub fn matches(&self, path: impl AsRef<str>) -> Vec<usize>
pub fn matches_into(&self, path: impl AsRef<str>, into: &mut Vec<usize>)
pub fn matches_candidate(&self, candidate: &Candidate<'_>) -> Vec<usize>
pub fn matches_candidate_into( &self, candidate: &Candidate<'_>, into: &mut Vec<usize>, )
Trait Implementations§
Source§impl Clone for TinyGlobSet
impl Clone for TinyGlobSet
Source§fn clone(&self) -> TinyGlobSet
fn clone(&self) -> TinyGlobSet
Returns a duplicate 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 TinyGlobSet
impl Debug for TinyGlobSet
Source§impl Default for TinyGlobSet
impl Default for TinyGlobSet
Source§fn default() -> TinyGlobSet
fn default() -> TinyGlobSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TinyGlobSet
impl RefUnwindSafe for TinyGlobSet
impl Send for TinyGlobSet
impl Sync for TinyGlobSet
impl Unpin for TinyGlobSet
impl UnsafeUnpin for TinyGlobSet
impl UnwindSafe for TinyGlobSet
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