Struct globset::Glob
[−]
[src]
pub struct Glob { /* fields omitted */ }
Glob represents a successfully parsed shell glob pattern.
It cannot be used directly to match file paths, but it can be converted to a regular expression string or a matcher.
Methods
impl Glob
[src]
fn new(glob: &str) -> Result<Glob, Error>
Builds a new pattern with default options.
fn compile_matcher(&self) -> GlobMatcher
Returns a matcher for this pattern.
fn glob(&self) -> &str
Returns the original glob pattern used to build this pattern.
fn regex(&self) -> &str
Returns the regular expression string for this glob.
Trait Implementations
impl Clone for Glob
[src]
fn clone(&self) -> Glob
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Glob
[src]
impl Eq for Glob
[src]
impl PartialEq for Glob
[src]
fn eq(&self, __arg_0: &Glob) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Glob) -> bool
This method tests for !=
.