pub fn glob_with(pattern: &str, options: MatchOptions) -> GlobIterator
Return an iterator that produces all the Paths that match the given pattern, which may be absolute or relative to the current working directory.
This function accepts Unix shell style patterns as described by Pattern::new(..)
.
The options given are passed through unchanged to Pattern::matches_with(..)
with
the exception that require_literal_separator
is always set to true
regardless of the
value passed to this function.
Paths are yielded in alphabetical order, as absolute paths.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).