[][src]Struct rubbl_casatables::Table

pub struct Table { /* fields omitted */ }

Methods

impl Table[src]

pub fn open<P: AsRef<Path>>(path: P, mode: TableOpenMode) -> Result<Self, Error>[src]

pub fn n_rows(&self) -> u64[src]

pub fn n_columns(&self) -> usize[src]

pub fn column_names(&mut self) -> Result<Vec<String>, CasacoreError>[src]

pub fn remove_column(&mut self, col_name: &str) -> Result<(), CasacoreError>[src]

pub fn table_keyword_names(&mut self) -> Result<Vec<String>, CasacoreError>[src]

pub fn get_col_desc(
    &mut self,
    col_name: &str
) -> Result<ColumnDescription, CasacoreError>
[src]

pub fn get_col_as_vec<T: CasaScalarData>(
    &mut self,
    col_name: &str
) -> Result<Vec<T>, Error>
[src]

pub fn get_cell<T: CasaDataType>(
    &mut self,
    col_name: &str,
    row: u64
) -> Result<T, Error>
[src]

pub fn get_cell_as_vec<T: CasaScalarData>(
    &mut self,
    col_name: &str,
    row: u64
) -> Result<Vec<T>, Error>
[src]

This function discards shape information but won't accept scalars.

pub fn put_cell<T: CasaDataType>(
    &mut self,
    col_name: &str,
    row: u64,
    value: &T
) -> Result<(), CasacoreError>
[src]

pub fn add_rows(&mut self, n_rows: usize) -> Result<(), CasacoreError>[src]

pub fn get_row_reader(&mut self) -> Result<TableRow, CasacoreError>[src]

pub fn get_row_writer(&mut self) -> Result<TableRow, CasacoreError>[src]

pub fn read_row(
    &mut self,
    row: &mut TableRow,
    row_number: u64
) -> Result<(), Error>
[src]

pub fn for_each_row<F>(&mut self, func: F) -> Result<(), Error> where
    F: FnMut(&mut TableRow) -> Result<(), Error>, 
[src]

pub fn copy_rows_to(&mut self, dest: &mut Table) -> Result<(), CasacoreError>[src]

pub fn deep_copy_no_rows(
    &mut self,
    dest_path: &str
) -> Result<(), CasacoreError>
[src]

Trait Implementations

impl Drop for Table[src]

Auto Trait Implementations

impl !Send for Table

impl !Sync for Table

Blanket Implementations

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]