Enum toml::DecodeErrorKind
[−]
[src]
pub enum DecodeErrorKind { ApplicationError(String), ExpectedField(&'static str), ExpectedType(&'static str, &'static str), ExpectedMapKey(usize), ExpectedMapElement(usize), NoEnumVariants, NilTooLong, }
Enumeration of possible errors which can occur while decoding a structure.
Variants
ApplicationError(String)
An error flagged by the application, e.g. value out of range
ExpectedField(&'static str)
A field was expected, but none was found.
ExpectedType(&'static str, &'static str)
A field was found, but it had the wrong type.
ExpectedMapKey(usize)
The nth map key was expected, but none was found.
ExpectedMapElement(usize)
The nth map element was expected, but none was found.
NoEnumVariants
An enum decoding was requested, but no variants were supplied
NilTooLong
The unit type was being decoded, but a non-zero length string was found
Trait Implementations
impl Debug for DecodeErrorKind
[src]
impl PartialEq for DecodeErrorKind
[src]
fn eq(&self, __arg_0: &DecodeErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DecodeErrorKind) -> bool
This method tests for !=
.