pub enum ErrorData {
Syntax(SyntaxError),
Logic(LogicError),
IO(String),
}Variants§
Trait Implementations§
Source§impl Error for ErrorData
impl Error for ErrorData
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<LogicError> for ErrorData
impl From<LogicError> for ErrorData
Source§fn from(source: LogicError) -> Self
fn from(source: LogicError) -> Self
Converts to this type from the input type.
Source§impl From<SyntaxError> for ErrorData
impl From<SyntaxError> for ErrorData
Source§fn from(source: SyntaxError) -> Self
fn from(source: SyntaxError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ErrorData
Auto Trait Implementations§
impl Freeze for ErrorData
impl RefUnwindSafe for ErrorData
impl Send for ErrorData
impl Sync for ErrorData
impl Unpin for ErrorData
impl UnsafeUnpin for ErrorData
impl UnwindSafe for ErrorData
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