Struct globset::GlobBuilder
[−]
[src]
pub struct GlobBuilder<'a> { /* fields omitted */ }
A builder for a pattern.
This builder enables configuring the match semantics of a pattern. For example, one can make matching case insensitive.
The lifetime 'a
refers to the lifetime of the pattern string.
Methods
impl<'a> GlobBuilder<'a>
[src]
fn new(glob: &'a str) -> GlobBuilder<'a>
Create a new builder for the pattern given.
The pattern is not compiled until build
is called.
fn build(&self) -> Result<Glob, Error>
Parses and builds the pattern.
fn case_insensitive(&mut self, yes: bool) -> &mut GlobBuilder<'a>
Toggle whether the pattern matches case insensitively or not.
This is disabled by default.
fn literal_separator(&mut self, yes: bool) -> &mut GlobBuilder<'a>
Toggle whether a literal /
is required to match a path separator.
Trait Implementations
impl<'a> Clone for GlobBuilder<'a>
[src]
fn clone(&self) -> GlobBuilder<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more