pub enum DznParseError {
Io(Error),
InvalidEncoding(Utf8Error),
InvalidSyntax {
expected: SyntaxElement,
actual: String,
},
}Expand description
Errors the parser can encounter.
Variants§
Trait Implementations§
Source§impl Debug for DznParseError
impl Debug for DznParseError
Source§impl Display for DznParseError
impl Display for DznParseError
Source§impl Error for DznParseError
impl Error for DznParseError
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<Error> for DznParseError
impl From<Error> for DznParseError
Auto Trait Implementations§
impl Freeze for DznParseError
impl !RefUnwindSafe for DznParseError
impl Send for DznParseError
impl Sync for DznParseError
impl Unpin for DznParseError
impl !UnwindSafe for DznParseError
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