pub trait Glob {
// Required method
fn glob_with(
&self,
pattern: &str,
options: &MatchOptions,
) -> Result<Paths, PatternError>;
// Provided methods
fn glob(&self, pattern: &str) -> Result<Paths, PatternError> { ... }
fn rglob_with(
&self,
pattern: &str,
options: &MatchOptions,
) -> Result<Paths, PatternError> { ... }
fn rglob(&self, pattern: &str) -> Result<Paths, PatternError> { ... }
}
Expand description
A trait providing glob methods.
The idea is “glob starting from here”
Required Methods§
Sourcefn glob_with(
&self,
pattern: &str,
options: &MatchOptions,
) -> Result<Paths, PatternError>
fn glob_with( &self, pattern: &str, options: &MatchOptions, ) -> Result<Paths, PatternError>
Glob here with explicit options
Provided Methods§
Sourcefn rglob_with(
&self,
pattern: &str,
options: &MatchOptions,
) -> Result<Paths, PatternError>
fn rglob_with( &self, pattern: &str, options: &MatchOptions, ) -> Result<Paths, PatternError>
Glob inside of here with explicit options (<here>/**/<pattern>
)