[−][src]Struct mech_core::Table
Fields
id: u64
rows: u64
columns: u64
column_aliases: Aliases
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,