Enum toml::Error [] [src]

pub enum Error {
    NeedsKey,
    NoValue,
    InvalidMapKeyLocation,
    InvalidMapKeyType,
    Custom(String),
}

Enumeration of errors which can occur while encoding a rust value into a TOML value.

Variants

Indication that a key was needed when a value was emitted, but no key was previously emitted.

Indication that a key was emitted, but no value was emitted.

Indicates that a map key was attempted to be emitted at an invalid location.

Indicates that a type other than a string was attempted to be used as a map key type.

A custom error type was generated

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter.

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more