Struct memtable_core::exts::sled::SledTable [−][src]
pub struct SledTable<D, R, C, T> where
D: Serialize + for<'de> Deserialize<'de>,
R: List<Item = D>,
C: List<Item = D>,
T: Table<Data = D, Row = R, Column = C>, { /* fields omitted */ }
sled
and std
only.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
Trait Implementations
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
type Data = D
type Data = D
The type of data stored in individual cells within the table
type Row = R
type Row = R
The type of structure to hold a row of data
type Column = C
type Column = C
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 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
fn into_column(self, idx: usize) -> IntoColumn<Self::Data, Self>ⓘNotable traits for IntoColumn<D, T>
impl<D, T: Table<Data = D>> Iterator for IntoColumn<D, T> type Item = D;
fn into_column(self, idx: usize) -> IntoColumn<Self::Data, Self>ⓘNotable traits for IntoColumn<D, T>
impl<D, T: Table<Data = D>> Iterator for IntoColumn<D, T> type Item = D;
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
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
Auto Trait Implementations
impl<D, R, C, T> !RefUnwindSafe for SledTable<D, R, C, T>
impl<D, R, C, T> !UnwindSafe for SledTable<D, R, C, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
csv
and std
only.Write a table to a string