pub enum ErrorCodes {
BadTokenPosAttribute,
BadTokenPosBang,
EolNoData,
EolMissingElement,
EolMissingAttribute,
EolMissingGlobal,
UnterminatedQuote,
Runtime,
}Expand description
A collection of spec-defined error codes to help inform the end-user why a failure to parse occurred.
For custom file formats using the spec, a custom error message is desired. For this case, use ErrorCodes::Runtime.
Variants§
BadTokenPosAttribute
BadTokenPosBang
EolNoData
EolMissingElement
EolMissingAttribute
EolMissingGlobal
UnterminatedQuote
Runtime
Implementations§
Trait Implementations§
Source§impl PartialEq for ErrorCodes
impl PartialEq for ErrorCodes
impl StructuralPartialEq for ErrorCodes
Auto Trait Implementations§
impl Freeze for ErrorCodes
impl RefUnwindSafe for ErrorCodes
impl Send for ErrorCodes
impl Sync for ErrorCodes
impl Unpin for ErrorCodes
impl UnwindSafe for ErrorCodes
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