Struct broot::pattern::FuzzyPattern
source · pub struct FuzzyPattern { /* private fields */ }
Expand description
A pattern for fuzzy matching
Implementations§
source§impl FuzzyPattern
impl FuzzyPattern
sourcepub fn from(pat: &str) -> Self
pub fn from(pat: &str) -> Self
build a pattern which will later be usable for fuzzy search. A pattern should be reused
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
an “empty” pattern is one which accepts everything because it has no discriminant
Trait Implementations§
source§impl Clone for FuzzyPattern
impl Clone for FuzzyPattern
source§fn clone(&self) -> FuzzyPattern
fn clone(&self) -> FuzzyPattern
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 FuzzyPattern
impl Debug for FuzzyPattern
Auto Trait Implementations§
impl RefUnwindSafe for FuzzyPattern
impl Send for FuzzyPattern
impl Sync for FuzzyPattern
impl Unpin for FuzzyPattern
impl UnwindSafe for FuzzyPattern
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