pub enum MainError {
PathError(String),
InputError(String),
ParseError(String),
PrintError(String),
ArgumentError(String),
}
Expand description
The ways in which the main
function can fail.
Variants§
PathError(String)
The file handed in for parsing wasn’t valid.
InputError(String)
Something was amiss with the input, so it couldn’t be read.
ParseError(String)
The parser returned in an error state.
PrintError(String)
The doctree generated by the parser couldn’t be transformed to object code.
ArgumentError(String)
Something was off with the command line arguments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MainError
impl RefUnwindSafe for MainError
impl Send for MainError
impl Sync for MainError
impl Unpin for MainError
impl UnwindSafe for MainError
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