Struct memtable_core::FixedTable [−][src]
Expand description
Represents an inmemory table containing rows & columns of some data T
with a fixed capacity across both rows and columns
Implementations
pub fn iter(&self) -> ZipPosition<&T, Cells<'_, T, FixedTable<T, ROW, COL>>>ⓘNotable traits for ZipPosition<T, I>
impl<T, I: CellIter<T>> Iterator for ZipPosition<T, I> type Item = (Position, T);
pub fn iter(&self) -> ZipPosition<&T, Cells<'_, T, FixedTable<T, ROW, COL>>>ⓘNotable traits for ZipPosition<T, I>
impl<T, I: CellIter<T>> Iterator for ZipPosition<T, I> type Item = (Position, T);
Returns an iterator over the cells and their positions within the table
Trait Implementations
impl<'de, T: Default, const ROW: usize, const COL: usize> Deserialize<'de> for FixedTable<T, ROW, COL> where
T: Deserialize<'de>,
impl<'de, T: Default, const ROW: usize, const COL: usize> Deserialize<'de> for FixedTable<T, ROW, COL> where
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Default, V: Into<T>, const ROW: usize, const COL: usize> FromIterator<(Position, V)> for FixedTable<T, ROW, COL>
impl<T: Default, V: Into<T>, const ROW: usize, const COL: usize> FromIterator<(Position, V)> for FixedTable<T, ROW, COL>
impl<'a, T: Default, const ROW: usize, const COL: usize> IntoIterator for &'a FixedTable<T, ROW, COL>
impl<'a, T: Default, const ROW: usize, const COL: usize> IntoIterator for &'a FixedTable<T, ROW, COL>
Converts into an iterator over the table’s cells’ positions and values
type IntoIter = ZipPosition<&'a T, Cells<'a, T, FixedTable<T, ROW, COL>>>
type IntoIter = ZipPosition<&'a T, Cells<'a, T, FixedTable<T, ROW, COL>>>
Which kind of iterator are we turning this into?
Converts into an iterator over the table’s cells’ positions and values
type IntoIter = ZipPosition<T, IntoCells<T, FixedTable<T, ROW, COL>>>
type IntoIter = ZipPosition<T, IntoCells<T, FixedTable<T, ROW, COL>>>
Which kind of iterator are we turning this into?
impl<T: PartialEq + Default, const ROW: usize, const COL: usize> PartialEq<FixedTable<T, ROW, COL>> for FixedTable<T, ROW, COL>
impl<T: PartialEq + Default, const ROW: usize, const COL: usize> PartialEq<FixedTable<T, ROW, COL>> for FixedTable<T, ROW, COL>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Data = T
type Data = T
The type of data stored in individual cells within 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
Replaces the given value into the cell of the table at the specified row and column, returning the previous value contained in the cell Read more
Removes the given value from the cell at the specified position, but does not shift any other cell to fill in the gap Read more
Sets the preferred capacity of the table when it comes to total rows Read more
Sets the preferred capacity of the table when it comes to total columns 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
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
fn remove_column(&mut self, col: 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 remove_column(&mut self, col: 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;
Removes the column at the specified position, shifting left all columns after it Read more
fn pop_column(&mut self) -> 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 pop_column(&mut self) -> IntoColumn<Self::Data, Self>ⓘNotable traits for IntoColumn<D, T>
impl<D, T: Table<Data = D>> Iterator for IntoColumn<D, T> type Item = D;
Pops a column off the end of the table Read more
impl<T: Default, const ROW: usize, const COL: usize> StructuralPartialEq for FixedTable<T, ROW, COL>
Auto Trait Implementations
impl<T, const ROW: usize, const COL: usize> RefUnwindSafe for FixedTable<T, ROW, COL> where
T: RefUnwindSafe,
impl<T, const ROW: usize, const COL: usize> Send for FixedTable<T, ROW, COL> where
T: Send,
impl<T, const ROW: usize, const COL: usize> Sync for FixedTable<T, ROW, COL> where
T: Sync,
impl<T, const ROW: usize, const COL: usize> Unpin for FixedTable<T, ROW, COL> where
T: Unpin,
impl<T, const ROW: usize, const COL: usize> UnwindSafe for FixedTable<T, ROW, COL> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more