Lines Matching refs:error
73 use std::error::Error;
107 /// This may return an error if the pattern is invalid.
168 /// This may return an error if the pattern is invalid.
200 // make sure that the pattern is valid first, else early return with error
267 /// A glob iteration error.
275 error: io::Error,
279 /// The Path that the error corresponds to.
284 /// The error in question.
285 pub fn error(&self) -> &io::Error {
286 &self.error
291 self.error
298 self.error.description()
303 Some(&self.error)
311 "attempting to read `{}` resulted in an error: {}",
313 self.error
324 /// This represents either a matched path or a glob iteration error,
334 // failing to fill the buffer is an iteration error construction of the
439 /// A pattern parsing error.
443 /// The approximate character index of where the error occurred.
446 /// A message describing the error.
460 "Pattern syntax error near position {}: {}",
474 /// are invalid and will result in an error. A sequence of more than two
896 error: e,
1078 assert!(err.error().kind() == io::ErrorKind::PermissionDenied);