[][src]Enum simd_json::ErrorType

pub enum ErrorType {
    BadKeyType,
    EarlyEnd,
    ExpectedArray,
    ExpectedArrayComma,
    ExpectedBoolean,
    ExpectedEnum,
    ExpectedFloat,
    ExpectedInteger,
    ExpectedMap,
    ExpectedObjectColon,
    ExpectedMapComma,
    ExpectedMapEnd,
    ExpectedNull,
    ExpectedNumber,
    ExpectedSigned,
    ExpectedString,
    ExpectedUnsigned,
    InternalError,
    InvalidEscape,
    InvalidExponent,
    InvalidNumber,
    InvalidUTF8,
    InvalidUnicodeEscape,
    InvlaidUnicodeCodepoint,
    KeyMustBeAString,
    NoStructure,
    Parser,
    EOF,
    Serde(String),
    Syntax,
    TrailingCharacters,
    UnexpectedCharacter,
    UnexpectedEnd,
    UnterminatedString,
    ExpectedArrayContent,
    ExpectedObjectContent,
    ExpectedObjectKey,
    Overflow,
}

Error types encountered while parsing

Variants

BadKeyType

The key of a map isn't a string

EarlyEnd

The data ended early

ExpectedArray

Expected an array

ExpectedArrayComma

Expected a , in an array

ExpectedBoolean

expected an boolean

ExpectedEnum

Expected an enum

ExpectedFloat

Expected a float

ExpectedInteger

Expected an integer

ExpectedMap

Expected a map

ExpectedObjectColon

Expected an : to seperate key and value in an object

ExpectedMapComma

Expected a , in an object

ExpectedMapEnd

Expected the object to end

ExpectedNull

Expected a null

ExpectedNumber

Expected a number

ExpectedSigned

Expected a signed number

ExpectedString

Expected a string

ExpectedUnsigned

Expected an unsigned number

InternalError

Internal error

InvalidEscape

Invalid escape sequence

InvalidExponent

Invalid exponent in a floating point number

InvalidNumber

Invalid number

InvalidUTF8

Inbalid UTF8 codepoint

InvalidUnicodeEscape

Invalid Unicode escape sequence

InvlaidUnicodeCodepoint

Inbalid Unicode codepoint

KeyMustBeAString

Object Key isn't a string

NoStructure

Non structural character

Parser

Parser Erropr

EOF

Early End Of File

Serde(String)

Generic serde error

Syntax

Generic syntax error

TrailingCharacters

Training characters

UnexpectedCharacter

Unexpected character

UnexpectedEnd

Unexpected end

UnterminatedString

Unterminated string

ExpectedArrayContent

Expected Array elements

ExpectedObjectContent

Expected Object elements

ExpectedObjectKey

Expected Object Key

Overflow

Overflow of a limited buffer

Trait Implementations

impl PartialEq<ErrorType> for ErrorType[src]

impl Debug for ErrorType[src]

impl StructuralPartialEq for ErrorType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]