Struct table::Table[][src]

pub struct Table { /* fields omitted */ }

Contains Values indexed by a string name.

Examples

TODO

Methods

impl Table
[src]

Constructs a new, empty table.

Constructs a new table from the given initial map.

Checks if the given key exists in the map.

Gets and parses the value with the given name and returns it, or returns None if the value doesn't exist or can't be parsed as this type.

Gets and parses the value with the given name and returns it, or returns None if the value doesn't exist or can't be parsed as this type.

Updates the value assigned to this name, returning the previous one if it existed.

Removes any assignment of a value to this name, returning it if it existed.

Removes all value assignments, resetting this table to a new state.

Produces an iterator over the keys and values in this table.

Currently, this method only delegates to the inner HashMap::iter().

Produces a mutable iterator over the keys and values in this table.

Currently, this method only delegates to HashMap::iter_mut().

Trait Implementations

impl From<Table> for Value
[src]

Performs the conversion.

impl<'a> FromValue<'a> for &'a Table
[src]

Attempts to perform the conversion, returning None if the given value can not be used to produce Self. Read more

impl<'a> FromValueMut<'a> for &'a mut Table
[src]

Attempts to perform the conversion, returning None if the given value can not be used to produce Self. Read more

impl Serialize for Table
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Table
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Debug for Table
[src]

Formats the value using the given formatter. Read more

impl Clone for Table
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Table
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Table
[src]

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

impl From<HashMap<String, Value>> for Table
[src]

Performs the conversion.

impl<'a> IntoIterator for &'a Table
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<'a> IntoIterator for &'a mut Table
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl Send for Table

impl Sync for Table