Struct globset::GlobBuilder [−][src]
pub struct GlobBuilder<'a> { /* fields omitted */ }
Expand description
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.
Implementations
Create a new builder for the pattern given.
The pattern is not compiled until build
is called.
Toggle whether the pattern matches case insensitively or not.
This is disabled by default.
Toggle whether a literal /
is required to match a path separator.
By default this is false: *
and ?
will match /
.
When enabled, a back slash (\
) may be used to escape
special characters in a glob pattern. Additionally, this will
prevent \
from being interpreted as a path separator on all
platforms.
This is enabled by default on platforms where \
is not a
path separator and disabled by default on platforms where \
is a path separator.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for GlobBuilder<'a>
impl<'a> Send for GlobBuilder<'a>
impl<'a> Sync for GlobBuilder<'a>
impl<'a> Unpin for GlobBuilder<'a>
impl<'a> UnwindSafe for GlobBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more