Enum deser_hjson::ErrorCode
source · pub enum ErrorCode {
Show 28 variants
Eof,
ExpectedBoolean,
ExpectedInteger,
ExpectedI8,
ExpectedI16,
ExpectedI32,
ExpectedI64,
ExpectedU8,
ExpectedU16,
ExpectedU32,
ExpectedU64,
ExpectedF32,
ExpectedF64,
ExpectedPositiveInteger,
ExpectedString,
ExpectedNull,
ExpectedArray,
ExpectedArrayComma,
ExpectedArrayEnd,
ExpectedMap,
ExpectedMapColon,
ExpectedMapComma,
ExpectedMapEnd,
ExpectedEnum,
ExpectedSingleChar,
InvalidEscapeSequence,
TrailingCharacters,
UnexpectedChar,
}
Expand description
The types of errors which can happen in our code during deserialization
Variants§
Eof
ExpectedBoolean
ExpectedInteger
ExpectedI8
ExpectedI16
ExpectedI32
ExpectedI64
ExpectedU8
ExpectedU16
ExpectedU32
ExpectedU64
ExpectedF32
ExpectedF64
ExpectedPositiveInteger
ExpectedString
ExpectedNull
ExpectedArray
ExpectedArrayComma
ExpectedArrayEnd
ExpectedMap
ExpectedMapColon
ExpectedMapComma
ExpectedMapEnd
ExpectedEnum
ExpectedSingleChar
InvalidEscapeSequence
TrailingCharacters
UnexpectedChar
Trait Implementations§
source§impl PartialEq for ErrorCode
impl PartialEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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