[][src]Struct toml::Decoder

pub struct Decoder {
    pub toml: Option<Value>,
    // some fields omitted
}

A structure to transform TOML values into Rust values.

This decoder implements the serialization Decoder interface, allowing Decodable types to be generated by this decoder. The input is any arbitrary TOML value.

Fields

toml: Option<Value>

The TOML value left over after decoding. This can be used to inspect whether fields were decoded or not.

Implementations

impl Decoder[src]

pub fn new(toml: Value) -> Decoder[src]

Creates a new decoder, consuming the TOML value to decode.

This decoder can be passed to the Decodable methods or driven manually.

Trait Implementations

impl Decoder for Decoder[src]

type Error = DecodeError

The error type for method results.

Auto Trait Implementations

impl RefUnwindSafe for Decoder

impl Send for Decoder

impl Sync for Decoder

impl Unpin for Decoder

impl UnwindSafe for Decoder

Blanket Implementations

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

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

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

impl<D> DecoderHelpers for D where
    D: Decoder
[src]

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

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

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.

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.