Enum ron::error::ErrorCode[][src]

pub enum ErrorCode {
Show 32 variants Io(String), Message(String), Base64Error(DecodeError), Eof, ExpectedArray, ExpectedArrayEnd, ExpectedAttribute, ExpectedAttributeEnd, ExpectedBoolean, ExpectedComma, ExpectedChar, ExpectedFloat, ExpectedInteger, ExpectedOption, ExpectedOptionEnd, ExpectedMap, ExpectedMapColon, ExpectedMapEnd, ExpectedStruct, ExpectedStructEnd, ExpectedUnit, ExpectedString, ExpectedStringEnd, ExpectedIdentifier, InvalidEscape(&'static str), IntegerOutOfBounds, NoSuchExtension(String), UnclosedBlockComment, UnderscoreAtBeginning, UnexpectedByte(char), Utf8Error(Utf8Error), TrailingCharacters, // some variants omitted
}

Variants

Io(String)

Tuple Fields of Io

0: String
Message(String)

Tuple Fields of Message

0: String
Base64Error(DecodeError)

Tuple Fields of Base64Error

0: DecodeError
Eof
ExpectedArray
ExpectedArrayEnd
ExpectedAttribute
ExpectedAttributeEnd
ExpectedBoolean
ExpectedComma
ExpectedChar
ExpectedFloat
ExpectedInteger
ExpectedOption
ExpectedOptionEnd
ExpectedMap
ExpectedMapColon
ExpectedMapEnd
ExpectedStruct
ExpectedStructEnd
ExpectedUnit
ExpectedString
ExpectedStringEnd
ExpectedIdentifier
InvalidEscape(&'static str)

Tuple Fields of InvalidEscape

0: &'static str
IntegerOutOfBounds
NoSuchExtension(String)

Tuple Fields of NoSuchExtension

0: String
UnclosedBlockComment
UnderscoreAtBeginning
UnexpectedByte(char)

Tuple Fields of UnexpectedByte

0: char
Utf8Error(Utf8Error)

Tuple Fields of Utf8Error

0: Utf8Error
TrailingCharacters

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.