[][src]Struct globset::GlobSetBuilder

pub struct GlobSetBuilder { /* fields omitted */ }

GlobSetBuilder builds a group of patterns that can be used to simultaneously match a file path.

Implementations

impl GlobSetBuilder[src]

pub fn new() -> GlobSetBuilder[src]

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]

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]

Add a new pattern to this set.

Trait Implementations

impl Clone for GlobSetBuilder[src]

impl Debug for GlobSetBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.