Enum doki_error::DokiErrorKind
source · [−]pub enum DokiErrorKind {
IOError(Error),
FormatError(Error),
SyntaxError(String),
TypeMismatch(String),
RuntimeError(String),
UndefinedVariable {
name: String,
},
Unreachable,
}Expand description
Actual error data for the error
Variants
IOError(Error)
The error type for I/O operations
FormatError(Error)
The error type which is returned from formatting a message into a stream.
SyntaxError(String)
The error type which is
TypeMismatch(String)
The error type which is
RuntimeError(String)
The error type which is occurred at runtime
UndefinedVariable
Fields
name: StringThe name of the undefined variable
Runtime error when variable is undefined
Unreachable
A forbidden cst_node encountered
Trait Implementations
sourceimpl Debug for DokiErrorKind
impl Debug for DokiErrorKind
Auto Trait Implementations
impl !RefUnwindSafe for DokiErrorKind
impl Send for DokiErrorKind
impl Sync for DokiErrorKind
impl Unpin for DokiErrorKind
impl !UnwindSafe for DokiErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more