Enum simd_json::ErrorType[][src]

pub enum ErrorType {
Show variants InputTooLarge, 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, Io(Error),
}
Expand description

Error types encountered while parsing

Variants

InputTooLarge
Expand description

Simd-json only supports inputs of up to 4GB in size.

BadKeyType
Expand description

The key of a map isn’t a string

EarlyEnd
Expand description

The data ended early

ExpectedArray
Expand description

Expected an array

ExpectedArrayComma
Expand description

Expected a , in an array

ExpectedBoolean
Expand description

expected an boolean

ExpectedEnum
Expand description

Expected an enum

ExpectedFloat
Expand description

Expected a float

ExpectedInteger
Expand description

Expected an integer

ExpectedMap
Expand description

Expected a map

ExpectedObjectColon
Expand description

Expected an : to seperate key and value in an object

ExpectedMapComma
Expand description

Expected a , in an object

ExpectedMapEnd
Expand description

Expected the object to end

ExpectedNull
Expand description

Expected a null

ExpectedNumber
Expand description

Expected a number

ExpectedSigned
Expand description

Expected a signed number

ExpectedString
Expand description

Expected a string

ExpectedUnsigned
Expand description

Expected an unsigned number

InternalError
Expand description

Internal error

InvalidEscape
Expand description

Invalid escape sequence

InvalidExponent
Expand description

Invalid exponent in a floating point number

InvalidNumber
Expand description

Invalid number

InvalidUtf8
Expand description

Inbalid UTF8 codepoint

InvalidUnicodeEscape
Expand description

Invalid Unicode escape sequence

InvlaidUnicodeCodepoint
Expand description

Inbalid Unicode codepoint

KeyMustBeAString
Expand description

Object Key isn’t a string

NoStructure
Expand description

Non structural character

Parser
Expand description

Parser Erropr

Eof
Expand description

Early End Of File

Serde(String)
Expand description

Generic serde error

Syntax
Expand description

Generic syntax error

TrailingCharacters
Expand description

Training characters

UnexpectedCharacter
Expand description

Unexpected character

UnexpectedEnd
Expand description

Unexpected end

UnterminatedString
Expand description

Unterminated string

ExpectedArrayContent
Expand description

Expected Array elements

ExpectedObjectContent
Expand description

Expected Object elements

ExpectedObjectKey
Expand description

Expected Object Key

Overflow
Expand description

Overflow of a limited buffer

Io(Error)
Expand description

IO error

Trait Implementations

impl Debug for ErrorType[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<ErrorType> for ErrorType[src]

#[must_use]
fn eq(&self, other: &Self) -> bool
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.