[−][src]Struct mech::Table
Fields
id: u64
rows: u64
columns: u64
column_aliases: Aliases
column_index_to_alias: Vec<Option<u64>>
row_aliases: HashMap<u64, u64, RandomState>
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 Clone for Table
[src]
impl Debug for Table
[src]
impl PartialEq<Table> for Table
[src]
impl StructuralPartialEq for Table
[src]
Auto Trait Implementations
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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> 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, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,