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]
impl GlobSetBuilder
pub fn new() -> GlobSetBuilder
[src]
pub 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.
pub fn build(&self) -> Result<GlobSet, Error>
[src]
pub 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.
pub fn add(&mut self, pat: Glob) -> &mut GlobSetBuilder
[src]
pub fn add(&mut self, pat: Glob) -> &mut GlobSetBuilder
Add a new pattern to this set.
Trait Implementations
impl Clone for GlobSetBuilder
[src]
impl Clone for GlobSetBuilder
fn clone(&self) -> GlobSetBuilder
[src]
fn clone(&self) -> GlobSetBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GlobSetBuilder
[src]
impl Debug for GlobSetBuilder
Auto Trait Implementations
impl Send for GlobSetBuilder
impl Send for GlobSetBuilder
impl Sync for GlobSetBuilder
impl Sync for GlobSetBuilder