pub enum TcssError {
Lexer(LexerError),
Parser(ParserError),
Execution(ExecutionError),
Generator(GeneratorError),
IO(String),
}Expand description
Main TCSS error type
Variants§
Lexer(LexerError)
Parser(ParserError)
Execution(ExecutionError)
Generator(GeneratorError)
IO(String)
Trait Implementations§
Source§impl Error for TcssError
impl Error for TcssError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ExecutionError> for TcssError
impl From<ExecutionError> for TcssError
Source§fn from(error: ExecutionError) -> Self
fn from(error: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<GeneratorError> for TcssError
impl From<GeneratorError> for TcssError
Source§fn from(error: GeneratorError) -> Self
fn from(error: GeneratorError) -> Self
Converts to this type from the input type.
Source§impl From<LexerError> for TcssError
impl From<LexerError> for TcssError
Source§fn from(error: LexerError) -> Self
fn from(error: LexerError) -> Self
Converts to this type from the input type.
Source§impl From<ParserError> for TcssError
impl From<ParserError> for TcssError
Source§fn from(error: ParserError) -> Self
fn from(error: ParserError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for TcssError
Auto Trait Implementations§
impl Freeze for TcssError
impl RefUnwindSafe for TcssError
impl Send for TcssError
impl Sync for TcssError
impl Unpin for TcssError
impl UnwindSafe for TcssError
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