pub enum MyError {
Chrono(ParseError),
Clap(Error),
Glob(PatternError),
Io(Error),
ParseInt(ParseIntError),
Prefix(StripPrefixError),
Regex(Error),
Walk(Error),
Text(String),
}
Variants§
Chrono(ParseError)
Clap(Error)
Glob(PatternError)
Io(Error)
ParseInt(ParseIntError)
Prefix(StripPrefixError)
Regex(Error)
Walk(Error)
Text(String)
Implementations§
Trait Implementations§
source§impl Error for MyError
impl Error for MyError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for MyError
impl From<ParseError> for MyError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for MyError
impl From<ParseIntError> for MyError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<PatternError> for MyError
impl From<PatternError> for MyError
source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> Self
Converts to this type from the input type.
source§impl From<StripPrefixError> for MyError
impl From<StripPrefixError> for MyError
source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MyError
impl !RefUnwindSafe for MyError
impl Send for MyError
impl Sync for MyError
impl Unpin for MyError
impl !UnwindSafe for MyError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more