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 iter(&self) -> Iter<'_, ColumnData<'a>> ⓘ
pub fn iter(&self) -> Iter<'_, ColumnData<'a>> ⓘ
Returns an iterator over column values.
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<'de, 'a> Deserialize<'de> for TokenRow<'a>
Available on crate feature serde only.
impl<'de, 'a> Deserialize<'de> for TokenRow<'a>
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> IntoIterator for TokenRow<'a>
impl<'a> IntoIterator for TokenRow<'a>
Auto Trait Implementations§
impl<'a> Freeze for TokenRow<'a>
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> UnsafeUnpin 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