[−][src]Struct mech_core::Table
Fields
id: u64rows: u64columns: u64column_aliases: HashMap<u64, u64>column_index_to_alias: Vec<Option<u64>>row_aliases: HashMap<u64, u64>data: Vec<Vec<Value>>Methods
impl Table[src]
pub fn new(tag: u64, rows: u64, columns: u64) -> Table[src]
pub fn clear(&mut self)[src]
pub fn get_row_index(&self, row: &Index) -> Option<u64>[src]
pub fn get_column_alias(&self, column: &Index) -> Option<u64>[src]
pub fn get_column_index(&self, column: &Index) -> Option<u64>[src]
pub fn set_cell(&mut self, row: &Index, column: &Index, value: Value) -> Value[src]
pub fn set_column_alias(&mut self, alias: u64, ix: u64)[src]
pub fn grow_to_fit(&mut self, rows: u64, columns: u64)[src]
pub fn shrink_to_fit(&mut self, rows: u64, columns: u64)[src]
pub fn get_column(&self, column: &Index) -> Option<&Vec<Value>>[src]
pub fn get_row(&self, row: &Index) -> Option<Vec<Value>>[src]
pub fn index(&self, row: &Index, column: &Index) -> Option<&Value>[src]
pub fn clear_cell(&mut self, row: &Index, column: &Index)[src]
Trait Implementations
impl PartialEq<Table> for Table[src]
impl Clone for Table[src]
fn clone(&self) -> Table[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Table[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,