Enum toml_edit::Item [−][src]
pub enum Item {
None,
Value(Value),
Table(Table),
ArrayOfTables(ArrayOfTables),
}
Expand description
Type representing either a value, a table, an array of tables, or none.
Variants
Type representing none.
Value(Value)
Type representing value.
Tuple Fields of Value
0: Value
Table(Table)
Type representing table.
Tuple Fields of Table
0: Table
ArrayOfTables(ArrayOfTables)
Type representing array of tables.
Tuple Fields of ArrayOfTables
Implementations
Downcasting
Index into a TOML array or map. A string index can be used to access a value in a map, and a usize index can be used to access an element of an array.
Returns None
if:
- The type of
self
does not match the type of the index, for example if the index is a string andself
is an array or a number. - The given key does not exist in the map or the given index is not within the bounds of the array.
Mutably index into a TOML array or map. A string index can be used to access a value in a map, and a usize index can be used to access an element of an array.
Returns None
if:
- The type of
self
does not match the type of the index, for example if the index is a string andself
is an array or a number. - The given key does not exist in the map or the given index is not within the bounds of the array.
Casts self
to array of tables.
Casts self
to mutable value.
Casts self
to mutable table.
Casts self
to mutable array of tables.
Casts self
to value.
In-place convert to a value
Casts self
to table.
Casts self
to array of tables.
Returns true iff self
is an array of tables.
Casts self
to integer.
Returns true iff self
is an integer.
Casts self
to date-time.
Returns true iff self
is a date-time.
Casts self
to mutable 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.
Casts self
to either a table or an inline table.
Returns true iff self
is either a table, or an inline table.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Item
impl UnwindSafe for Item
Blanket Implementations
Mutably borrows from an owned value. Read more