Struct toml_edit::InlineTable[][src]

pub struct InlineTable { /* fields omitted */ }
Expand description

Type representing a TOML inline table, payload of the Value::InlineTable variant

Implementations

Returns the number of key/value pairs.

Returns true iff the table is empty.

Returns an iterator over key/value pairs.

Sorts the key/value pairs by key.

Returns true iff the table contains given key.

Merges the key/value pairs into the other table leaving self empty.

Inserts a key/value pair if the table does not contain the key. Returns a mutable reference to the corresponding value.

Auto formats the table.

Removes a key/value pair given the key.

Return an optional reference to the value at the given the key.

Return an optional mutable reference to the value at the given the key.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Returns an iterator over key/value pairs.

Returns an optional reference to an item given the key.

Returns an optional mutable reference to an item given the key.

Returns the number of nonempty items.

Returns true iff the table is empty.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.