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]

Create a new builder for the pattern given.

The pattern is not compiled until build is called.

Parses and builds the pattern.

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.

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

impl<'a> Clone for GlobBuilder<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for GlobBuilder<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for GlobBuilder<'a>

impl<'a> Sync for GlobBuilder<'a>