Struct globset::GlobSetBuilder
[−]
[src]
pub struct GlobSetBuilder { /* fields omitted */ }
GlobSetBuilder builds a group of patterns that can be used to simultaneously match a file path.
Methods
impl GlobSetBuilder
[src]
fn new() -> GlobSetBuilder
Create a new GlobSetBuilder. A GlobSetBuilder can be used to add new
patterns. Once all patterns have been added, build
should be called
to produce a GlobSet
, which can then be used for matching.
fn build(&self) -> Result<GlobSet, Error>
Builds a new matcher from all of the glob patterns added so far.
Once a matcher is built, no new patterns can be added to it.
fn add(&mut self, pat: Glob) -> &mut GlobSetBuilder
Add a new pattern to this set.