pub struct ProjectedRow<'a> { /* private fields */ }Expand description
The cells a ValueProjector writes for one row.
Implementations§
Source§impl<'a> ProjectedRow<'a>
impl<'a> ProjectedRow<'a>
Sourcepub fn fields(&self) -> &[ProjectedField]
pub fn fields(&self) -> &[ProjectedField]
The fields to write, in the order set indexes them.
Sourcepub fn set(&mut self, index: usize, cell: &[u8]) -> Result<()>
pub fn set(&mut self, index: usize, cell: &[u8]) -> Result<()>
Sets field index of the row to cell.
§Errors
Returns an error if index names no field, if the field was projected
by id alone (a row value has no type the engine could check it
against), or if cell does not fit the field’s fixed width.
Auto Trait Implementations§
impl<'a> !UnwindSafe for ProjectedRow<'a>
impl<'a> Freeze for ProjectedRow<'a>
impl<'a> RefUnwindSafe for ProjectedRow<'a>
impl<'a> Send for ProjectedRow<'a>
impl<'a> Sync for ProjectedRow<'a>
impl<'a> Unpin for ProjectedRow<'a>
impl<'a> UnsafeUnpin for ProjectedRow<'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> 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