[][src]Struct mech_core::Table

pub struct Table {
    pub id: u64,
    pub rows: u64,
    pub columns: u64,
    pub column_aliases: Aliases,
    pub column_index_to_alias: Vec<Option<u64>>,
    pub row_aliases: HashMap<u64, u64>,
    pub data: Vec<Vec<Value>>,
}

Fields

id: u64rows: u64columns: u64column_aliases: Aliasescolumn_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_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Table[src]

Auto Trait Implementations

impl Send for Table

impl Sync for Table

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]