pub struct BorrowedRow<'a> {
pub provider: &'a dyn TableProvider,
pub row_index: usize,
}Expand description
A zero-allocation row wrapper that references cell data directly from a provider.
Fields§
§provider: &'a dyn TableProvider§row_index: usizeTrait Implementations§
Source§impl<'a> Clone for BorrowedRow<'a>
impl<'a> Clone for BorrowedRow<'a>
Source§fn clone(&self) -> BorrowedRow<'a>
fn clone(&self) -> BorrowedRow<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for BorrowedRow<'a>
Source§impl Row for BorrowedRow<'_>
impl Row for BorrowedRow<'_>
fn cell(&self, col_index: usize) -> Option<TableCell<'_>>
Source§fn row_index(&self) -> Option<usize>
fn row_index(&self) -> Option<usize>
Returns the physical index of this row within the provider, if available.
fn column_count(&self) -> usize
Source§fn to_owned_row(&self) -> OwnedRow
fn to_owned_row(&self) -> OwnedRow
Snapshots every column of this row into an
OwnedRow, detaching it from
the provider’s borrow lifetime so it can be cached.Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BorrowedRow<'a>
impl<'a> !Send for BorrowedRow<'a>
impl<'a> !Sync for BorrowedRow<'a>
impl<'a> !UnwindSafe for BorrowedRow<'a>
impl<'a> Freeze for BorrowedRow<'a>
impl<'a> Unpin for BorrowedRow<'a>
impl<'a> UnsafeUnpin for BorrowedRow<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more