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

[src]

Casts self to integer.

[src]

Returns true iff self is an integer.

[src]

Casts self to float.

[src]

Returns true iff self is a float.

[src]

Casts self to boolean.

[src]

Returns true iff self is a boolean.

[src]

Casts self to str.

[src]

Returns true iff self is a string.

[src]

Casts self to date-time.

[src]

Returns true iff self is a date-time.

[src]

Casts self to array.

[src]

Casts self to mutable array.

[src]

Returns true iff self is an array.

[src]

Casts self to inline table.

[src]

Casts self to mutable inline table.

[src]

Returns true iff self is an inline table.

Trait Implementations

impl From<i64> for Value
[src]

[src]

Performs the conversion.

impl From<f64> for Value
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl From<String> for Value
[src]

[src]

Performs the conversion.

impl From<bool> for Value
[src]

[src]

Performs the conversion.

impl From<DateTime> for Value
[src]

[src]

Performs the conversion.

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

[src]

Creates a value from an iterator. Read more

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

[src]

Creates a value from an iterator. Read more

impl Debug for Value
[src]

[src]

Formats the value using the given formatter.

impl Clone for Value
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl FromStr for Value
[src]

The associated error which can be returned from parsing.

[src]

Parses a value from a &str

impl Display for Value
[src]

[src]

Formats the value using the given formatter. Read more