Struct memtable::exts::prelude::SledTable[][src]

pub struct SledTable<D, R, C, T> where
    C: List<Item = D>,
    T: Table<Data = D, Row = R, Column = C>,
    R: List<Item = D>,
    D: Serialize + for<'de> Deserialize<'de>, 
{ /* fields omitted */ }
Expand description

Represents a table that is replicated using a [sled::Tree]

Implementations

Creates a new sled table using the provided tree and factory function to create the inmemory table that takes in the current row and column capacities

Reloads the data in the table from sled, optionally refreshing the row and column capacities first

Returns true if this table has uncleared errors

Removes errors in table without returning them

Removes errors in table and returns them

Flushes any changes to sled, optionally rewriting the entire table prior to flushing

Trait Implementations

Formats the value using the given formatter. Read more

Will insert the data into the cell, replicate it using the [sled::Tree], and update the metadata within the [sled::Tree] based on if the maximum row or column count has changed

Will remove the data from the cell, remove it from the [sled::Tree], and update the metadata within the [sled::Tree] based on if the maximum row or column count has changed

Will set the row capacity of the inner table and replicate the metadata in the [sled::Tree]

Will set the column capacity of the inner table and replicate the metadata in the [sled::Tree]

The type of data stored in individual cells within the table

The type of structure to hold a row of data

The type of structure to hold a column of data

Returns the maximum row capacity of the table

Returns the maximum column capacity of the table

Returns the total rows contained in the table Read more

Returns the total columns contained in the table Read more

Returns reference to the cell found at the specified row and column Read more

Returns mut reference to the cell found at the specified row and column Read more

Returns the total cells (rows * columns) contained in the table Read more

Returns true if the total cells (rows * columns) contained in the table is zero Read more

Returns an iterator of refs through all rows in the table Read more

Returns an iterator of refs through a specific row in the table Read more

Consumes the table and returns an iterator through a specific row in the table Read more

Returns an iterator of refs through all columns in the table Read more

Returns an iterator of refs through a specific column in the table Read more

Consumes the table and returns an iterator through a specific column in the table Read more

Returns an iterator of refs through all cells in the table, starting from the first row, iterating through all cells from beginning to end, and then moving on to the next row Read more

Consumes the table and returns an iterator through all cells in the table, starting from the first row, iterating through all cells from beginning to end, and then moving on to the next row Read more

Returns whether or not a cell exists at the specified row & column. Note that this is not the same as whether or not the table’s current row & column range would include a cell at that position! Rather, this is reporting if a cell actually exists Read more

Inserts a new row into the table at the given position, shifting down all rows after it Read more

Pushes a row to the end of the table Read more

Removes the row at the specified position, shifting up all rows after it Read more

Pops a row off the end of the table Read more

Inserts a new column into the table at the given position, shifting right all columns after it Read more

Pushes a column to the end of the table Read more

Removes the column at the specified position, shifting left all columns after it Read more

Pops a column off the end of the table Read more

Tries to create a database wrapper using sled by mapping a tree’s data to that of a table; will create a new instance of the inmemory table using its Default implementation

The type returned in the event of a conversion error.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Writes a table to some instance of the io::Write trait

Write a table to a string

Writes a table to a CSV file at the given path

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.