Trait path_glob::Glob [] [src]

pub trait Glob {
    fn glob_with(&self, pattern: &str, options: &MatchOptions) -> Result<Paths, PatternError>;

    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> { ... }
}
[]

A trait providing glob methods.

The idea is “glob starting from here”

Required Methods

fn glob_with(&self, pattern: &str, options: &MatchOptions) -> Result<Paths, PatternError>[]

Glob here with explicit options

Provided Methods

fn glob(&self, pattern: &str) -> Result<Paths, PatternError>[]

Glob here with default options

fn rglob_with(&self, pattern: &str, options: &MatchOptions) -> Result<Paths, PatternError>[]

Glob inside of here with explicit options (<here>/**/<pattern>)

fn rglob(&self, pattern: &str) -> Result<Paths, PatternError>[]

Glob inside of here with default options (<here>/**/<pattern>)

Implementors