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]

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

impl Item
[src]

Downcasting

Casts self to value.

Casts self to table.

Casts self to array of tables.

Casts self to mutable value.

Casts self to mutable table.

Casts self to mutable array of tables.

Returns true iff self is a value.

Returns true iff self is a table.

Returns true iff self is an array of tables.

Returns true iff self is None.

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.

Casts self to either a table or an inline table.

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

Trait Implementations

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

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

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

impl Debug for Item
[src]

Formats the value using the given formatter. Read more

impl Clone for Item
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Item
[src]

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

Auto Trait Implementations

impl Send for Item

impl Sync for Item