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.
Trait Implementations§
source§impl<'a> IntoIterator for TokenRow<'a>
impl<'a> IntoIterator for TokenRow<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TokenRow<'a>
impl<'a> Send for TokenRow<'a>
impl<'a> Sync for TokenRow<'a>
impl<'a> Unpin for TokenRow<'a>
impl<'a> UnwindSafe for TokenRow<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more