Lines Matching defs:PatternError
160 pub fn glob(pattern: &str) -> Result<Paths, PatternError> {
177 pub fn glob_with(pattern: &str, options: MatchOptions) -> Result<Paths, PatternError> {
442 pub struct PatternError {
450 impl Error for PatternError {
456 impl fmt::Display for PatternError {
506 type Err = PatternError;
508 fn from_str(s: &str) -> Result<Self, PatternError> {
544 /// An invalid glob pattern will yield a `PatternError`.
545 pub fn new(pattern: &str) -> Result<Self, PatternError> {
567 return Err(PatternError {
586 return Err(PatternError {
593 return Err(PatternError {
639 return Err(PatternError {