Struct globset::GlobSetBuilder [−][src]
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]
fn clone(&self) -> GlobSetBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GlobSetBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlobSetBuilder
impl Send for GlobSetBuilder
impl Sync for GlobSetBuilder
impl Unpin for GlobSetBuilder
impl UnwindSafe for GlobSetBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,