Enum toml_edit::Value[][src]

pub enum Value {
    Integer(Formatted<i64>),
    String(Formatted<String>),
    Float(Formatted<f64>),
    DateTime(Formatted<DateTime>),
    Boolean(Formatted<bool>),
    Array(Array),
    InlineTable(InlineTable),
}

Representation of a TOML Value (as part of a Key/Value Pair).

Variants

A 64-bit integer value.

A string value.

A 64-bit float value.

A Date-Time value.

A boolean value.

An inline array of values.

An inline table of key/value pairs.

Methods

impl Value
[src]

Downcasting

Casts self to integer.

Returns true iff self is an integer.

Casts self to float.

Returns true iff self is a float.

Casts self to boolean.

Returns true iff self is a boolean.

Casts self to str.

Returns true iff self is a string.

Casts self to date-time.

Returns true iff self is a date-time.

Casts self to array.

Casts self to mutable array.

Returns true iff self is an array.

Casts self to inline table.

Casts self to mutable inline table.

Returns true iff self is an inline table.

Trait Implementations

impl Display for Value
[src]

Formats the value using the given formatter. Read more

impl From<i64> for Value
[src]

Performs the conversion.

impl From<f64> for Value
[src]

Performs the conversion.

impl<'b> From<&'b str> for Value
[src]

Performs the conversion.

impl From<String> for Value
[src]

Performs the conversion.

impl From<bool> for Value
[src]

Performs the conversion.

impl From<Array> for Value
[src]

Performs the conversion.

impl From<InlineTable> for Value
[src]

Performs the conversion.

impl<V: Into<Value>> FromIterator<V> for Value
[src]

Creates a value from an iterator. Read more

impl<'k, K: Into<&'k Key>, V: Into<Value>> FromIterator<(K, V)> for Value
[src]

Creates a value from an iterator. Read more

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromStr for Value
[src]

The associated error which can be returned from parsing.

Parses a value from a &str

Auto Trait Implementations

impl Send for Value

impl Sync for Value