pub struct GlobBuilder { /* private fields */ }Expand description
A builder for configuring a glob pattern.
Options like case_insensitive and literal_separator can be set before
building the final Glob.
Implementations§
Source§impl GlobBuilder
impl GlobBuilder
Sourcepub fn case_insensitive(&mut self, yes: bool) -> &mut Self
pub fn case_insensitive(&mut self, yes: bool) -> &mut Self
Toggle case-insensitive matching.
When enabled, the pattern is lowercased and paths are lowercased at match time.
Sourcepub fn literal_separator(&mut self, yes: bool) -> &mut Self
pub fn literal_separator(&mut self, yes: bool) -> &mut Self
Toggle literal separator mode.
This option is accepted for API compatibility but does not currently
change matching behavior, as glob-matcher already treats * as
not crossing separators and ** as crossing them.
Sourcepub fn backslash_escape(&mut self, yes: bool) -> &mut Self
pub fn backslash_escape(&mut self, yes: bool) -> &mut Self
Toggle backslash escaping.
This option is accepted for API compatibility.
Sourcepub fn empty_alternates(&mut self, yes: bool) -> &mut Self
pub fn empty_alternates(&mut self, yes: bool) -> &mut Self
Toggle empty alternates.
This option is accepted for API compatibility.
Trait Implementations§
Source§impl Clone for GlobBuilder
impl Clone for GlobBuilder
Source§fn clone(&self) -> GlobBuilder
fn clone(&self) -> GlobBuilder
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 moreAuto Trait Implementations§
impl Freeze for GlobBuilder
impl RefUnwindSafe for GlobBuilder
impl Send for GlobBuilder
impl Sync for GlobBuilder
impl Unpin for GlobBuilder
impl UnsafeUnpin for GlobBuilder
impl UnwindSafe for GlobBuilder
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