pub enum CompatRow<'buf> {
Modern(ModernRow<'buf>),
Legacy(LegacyRow<'buf>),
}
Expand description
Wraps an owned table row.
Variants§
Implementations§
Source§impl<'b> CompatRow<'b>
impl<'b> CompatRow<'b>
Sourcepub fn cells(&self) -> impl Iterator<Item = Cell<'b>> + '_
pub fn cells(&self) -> impl Iterator<Item = Cell<'b>> + '_
Returns an iterator over this row’s cells.
Because this is a compatibility wrapper, the returned Cell
s must be owned
(and therefore cloned), as modern tables do not store cells directly.
Sourcepub fn into_cells(self) -> impl Iterator<Item = Cell<'b>>
pub fn into_cells(self) -> impl Iterator<Item = Cell<'b>>
Returns an iterator over this row’s cells, taking ownership of the row.
Unlike the borrowed variant, this iterator moves instead of cloning. In the case of modern tables, the moved value is wrapped.
Auto Trait Implementations§
impl<'buf> Freeze for CompatRow<'buf>
impl<'buf> RefUnwindSafe for CompatRow<'buf>
impl<'buf> Send for CompatRow<'buf>
impl<'buf> Sync for CompatRow<'buf>
impl<'buf> Unpin for CompatRow<'buf>
impl<'buf> UnwindSafe for CompatRow<'buf>
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