pub fn new(toml: Value) -> Decoder {
        Decoder {
            toml: Some(toml),
            cur_field: None,
            leftover_map: BTreeMap::new(),
            cur_map: BTreeMap::new().into_iter().peekable(),
        }
    }
/// Creates a new decoder, consuming the TOML value to decode.
///
/// This decoder can be passed to the `Decodable` methods or driven
/// manually.
Creates a new decoder, consuming the TOML value to decode.
This decoder can be passed to the `Decodable` methods or driven
manually.
Creates a new decoder consuming the TOML value to decode . This decoder can be passed to the ` Decodable ` methods or driven manually .
pub fn new(toml: Value) -> Decoder {
        Decoder {
            toml: Some(toml),
            cur_field: None,
            leftover_map: BTreeMap::new(),
            cur_map: BTreeMap::new().into_iter().peekable(),
        }
    }
pub fn new ( toml : Value ) -> Decoder { Decoder { toml : Some ( toml ) , cur_field : None , leftover_map : BTreeMap :: new ( ) , cur_map : BTreeMap :: new ( ) . into_iter ( ) . peekable ( ) , } }
Creates a new decoder, consuming the TOML value to decode.
Creates a new decoder consuming the TOML value to decode .
toml
Value
toml
Value