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

NeedsKey

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

NoValue

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

InvalidMapKeyLocation

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

InvalidMapKeyType

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

Custom

A custom error type was generated

Trait Implementations

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

impl Error for Error

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result