pub struct TableIndex<F, D, Txn> { /* private fields */ }
Expand description

The base type of a Table.

Implementations

Create a new TableIndex with the given TableSchema.

Return true if this table has zero rows.

Merge the given list of Bounds into a single Bounds instance.

Returns an error in the case that later Bounds are larger than earlier Bounds.

Borrow the primary Index of this TableIndex.

Return an index which supports the given Bounds, or an error if there is none.

Stream the rows within the given Bounds from the primary index of this TableIndex.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Copy a new instance of Self from an existing instance.

Formats the value using the given formatter. Read more

Converts to this type from the input type.

The Class type of this instance

Returns the [Class] of this instance.

Return the schema of this persistent state.

Load a saved state from persistent storage.

Restore this persistent state from a backup.

Return the schema of this Table’s key.

Return the schema of this Table’s values.

Return the schema of this Table.

The type of Table returned by this instance’s order_by method.

The type of Table returned by this instance’s reversed method.

Return an ordered view of this table.

Reverse the order returned by rows.

Return an error if this table does not support ordering by the given columns.

The type of Table returned by this instance’s slice method.

Limit the returned rows to the given Bounds.

Return an error if this table does not support the given Bounds.

Return the number of rows in this Table.

Limit the number of rows returned by rows.

Limit the columns returned by rows.

Return a stream of the rows in this Table.

Delete the given Row from this table, if present.

Update one row of this table.

Insert or update the given row.

Commit this transaction.

Delete any version data specific to this transaction.

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

Cast an instance of T into an instance of Self.

Cast an instance of Self into an instance of T.

Returns the argument unchanged.

Calls U::from(self).

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

Returns true if self can be cast into the target type T.

Should always be Self

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)

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

Converts the given value to a String. Read more

Test if value can be cast into Self.

Returns Some(Self) if the source value can be cast into Self, otherwise None.

Returns Ok(Self) if the source value can be cast into Self, otherwise calls on_err.

Test if self can be cast into T.

Returns Some(T) if self can be cast into T, otherwise None.

Returns Ok(T) if self can be cast into T, otherwise calls on_err.

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.