pub struct DynRowRaw { /* private fields */ }Expand description
Lifetime-erased dynamic row produced by DynRowView::into_raw.
Implementations§
Source§impl DynRowRaw
impl DynRowRaw
Sourcepub fn try_new(
fields: Fields,
cells: Vec<Option<DynCellRaw>>,
) -> Result<Self, DynViewError>
pub fn try_new( fields: Fields, cells: Vec<Option<DynCellRaw>>, ) -> Result<Self, DynViewError>
Construct a raw row from explicit schema fields and raw cells.
§Errors
Returns DynViewError::Invalid when the number of cells does not match
the number of fields in the provided schema slice.
Sourcepub fn from_cells(
fields: Fields,
cells: Vec<DynCellRaw>,
) -> Result<Self, DynViewError>
pub fn from_cells( fields: Fields, cells: Vec<DynCellRaw>, ) -> Result<Self, DynViewError>
Construct a raw row from non-null cells.
§Errors
Returns DynViewError::Invalid when the number of cells does not match the schema.
Sourcepub fn cells(&self) -> &[Option<DynCellRaw>]
pub fn cells(&self) -> &[Option<DynCellRaw>]
Borrow the raw cell payloads.
Sourcepub fn into_cells(self) -> Vec<Option<DynCellRaw>>
pub fn into_cells(self) -> Vec<Option<DynCellRaw>>
Consume the raw row, yielding the underlying raw cells.
Sourcepub fn into_owned(self) -> Result<DynRow, DynViewError>
pub fn into_owned(self) -> Result<DynRow, DynViewError>
Convert this raw row into an owned DynRow, cloning nested data as needed.
Trait Implementations§
impl Send for DynRowRaw
impl Sync for DynRowRaw
Auto Trait Implementations§
impl Freeze for DynRowRaw
impl !RefUnwindSafe for DynRowRaw
impl Unpin for DynRowRaw
impl !UnwindSafe for DynRowRaw
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