Enum decent_toml_rs_alternative::TomlValue[][src]

pub enum TomlValue {
    String(String),
    Integer(i64),
    Float(f64),
    Boolean(bool),
    Datetime(String),
    Array(Vec<TomlValue>),
    Table(HashMap<String, TomlValue>),
}

Representation of a TOML value.

Variants

String(String)

Represents a TOML string

Integer(i64)

Represents a TOML integer

Float(f64)

Represents a TOML float

Boolean(bool)

Represents a TOML boolean

Datetime(String)

Represents a TOML datetime

Array(Vec<TomlValue>)

Represents a TOML array

Represents a TOML table

Implementations

impl TomlValue[src]

pub fn get(&self, key: &str) -> Option<&TomlValue>[src]

pub fn as_string(&self) -> Option<String>[src]

impl TomlValue[src]

pub fn print(&self, string: &mut String)[src]

Trait Implementations

impl Clone for TomlValue[src]

impl Debug for TomlValue[src]

impl PartialEq<TomlValue> for TomlValue[src]

impl StructuralPartialEq for TomlValue[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.