logo
pub struct Table { /* private fields */ }
Expand description

the table data container. Consists of named columns and metadata tags. See the module-level documentation for more details.

Implementations

creates an empty table without metadata

adds column to the table and gives it a name, if specified. If a column with the same name already exists, it will be overridden.

returns reference to the column with the name col_name if one exists, None otherwise.

returns mutable reference to the column with the name col_name if one exists, None otherwise.

removes column with the name col_name if one exists and returns it. Returns None if no column named col_name exists.

returns vec of (column-name, column) pairs, discarding the metadata tags

returns vec of columns discarding column names and metadata tags

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

Formats the value using the given formatter. Read more

adds a generic metadata tag to a data container. Returns an error if the supplied tag is reserved. If the tag already exists, the old value will be overridden. Read more

returns a copy of the tag associated with the supplied key, if it exists. reserved tags cannot be changed manually, but can be copied without any issues. Therefore, you may supply a restricted key to this function. Read more

removes a generic metadata tag from a data container. Returns an error if the supplied tag is reserved or if the tag does not exist. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.