pub enum Error<T: Display> {
Show 16 variants
UnrecognizedSubcommand(T),
UnrecognizedFlag(T),
UnrecognizedArgument(T),
CouldNotFindFile(T),
CouldNotReadFile(T),
NoInputFile,
CouldNotParseNumber(T),
CouldNotParse(T),
UnexpectedEOF(T),
Expected(T, T),
CouldNotParseExponent(T),
NoHelpAvailable(T),
CouldNotReadLine(T),
CouldNotFlushStdout(T),
UndeclaredVariable(T),
UnmatchedUnits(T, T, T),
}Expand description
Enumerates the errors thrown by the Carlo language.
Variants§
UnrecognizedSubcommand(T)
Could not recognize subcommand
UnrecognizedFlag(T)
Could not recognize flag
UnrecognizedArgument(T)
Could not recognize argument
CouldNotFindFile(T)
Could not find file
CouldNotReadFile(T)
Could not read file
NoInputFile
No input file
CouldNotParseNumber(T)
Could not parse number
CouldNotParse(T)
Could not parse expression
UnexpectedEOF(T)
Unexpected EOF
Expected(T, T)
Expected
CouldNotParseExponent(T)
Could not parse exponent
NoHelpAvailable(T)
No help available
CouldNotReadLine(T)
Could not read REPL line
CouldNotFlushStdout(T)
Could not flush stdout
UndeclaredVariable(T)
Undeclared variable
UnmatchedUnits(T, T, T)
Unmatched units
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Error<T>where
T: RefUnwindSafe,
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> UnwindSafe for Error<T>where
T: UnwindSafe,
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