Enum toml_edit::Item [] [src]

pub enum Item {
    None,
    Value(Value),
    Table(Table),
    ArrayOfTables(ArrayOfTables),
}

Type representing either a value, a table, an array of tables, or none.

Variants

Type representing none.

Type representing value.

Type representing table.

Type representing array of tables.

Methods

impl Item
[src]

[src]

Sets self to the given item iff self is none and returns a mutable reference to self.

impl Item
[src]

Downcasting

[src]

Casts self to value.

[src]

Casts self to table.

[src]

Casts self to array of tables.

[src]

Casts self to mutable value.

[src]

Casts self to mutable table.

[src]

Casts self to mutable array of tables.

[src]

Returns true iff self is a value.

[src]

Returns true iff self is a table.

[src]

Returns true iff self is an array of tables.

[src]

Returns true iff self is None.

[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.

[src]

Casts self to either a table or an inline table.

[src]

Returns true iff self is either a table, or an inline table.

Trait Implementations

impl Debug for Item
[src]

[src]

Formats the value using the given formatter.

impl Clone for Item
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Item
[src]

[src]

Returns the "default value" for a type. Read more

impl<I> Index<I> for Item where
    I: Index, 
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<I> IndexMut<I> for Item where
    I: Index, 
[src]

[src]

Performs the mutable indexing (container[index]) operation.