pub struct TokenRow<'a> { /* private fields */ }
Expand description
A row of data.
Implementations§
source§impl<'a> TokenRow<'a>
impl<'a> TokenRow<'a>
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a new empty row with allocated capacity.
sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Clears the row, removing all column values.
Note that this method has no effect on the allocated capacity of the row.
sourcepub fn get(&self, index: usize) -> Option<&ColumnData<'a>>
pub fn get(&self, index: usize) -> Option<&ColumnData<'a>>
Gets the columnar data with the given index. None
if index out of
bounds.
sourcepub fn push(&mut self, value: ColumnData<'a>)
pub fn push(&mut self, value: ColumnData<'a>)
Adds a new value to the row.