pub struct DynRowOwned { /* private fields */ }Expand description
Owned dynamic row that retains schema metadata alongside owned cell payloads.
Implementations§
Source§impl DynRowOwned
impl DynRowOwned
Sourcepub fn try_new(
fields: Fields,
cells: Vec<Option<DynCell>>,
) -> Result<Self, DynViewError>
pub fn try_new( fields: Fields, cells: Vec<Option<DynCell>>, ) -> Result<Self, DynViewError>
Construct an owned row from explicit schema fields and owned cells.
§Errors
Returns DynViewError::Invalid when the number of cells does not match the schema.
Sourcepub fn from_dyn_row(fields: Fields, row: DynRow) -> Result<Self, DynViewError>
pub fn from_dyn_row(fields: Fields, row: DynRow) -> Result<Self, DynViewError>
Construct an owned row from a DynRow.
Sourcepub fn from_raw(raw: &DynRowRaw) -> Result<Self, DynViewError>
pub fn from_raw(raw: &DynRowRaw) -> Result<Self, DynViewError>
Clone the lifetime-erased raw row into an owned representation.
Sourcepub fn as_raw(&self) -> Result<DynRowRaw, DynViewError>
pub fn as_raw(&self) -> Result<DynRowRaw, DynViewError>
Borrow this owned row as a lifetime-erased raw row referencing the owned buffers.
Sourcepub fn into_dyn_row(self) -> DynRow
pub fn into_dyn_row(self) -> DynRow
Consume this owned row, yielding the underlying dynamic row cells.
Sourcepub fn to_dyn_row(&self) -> DynRow
pub fn to_dyn_row(&self) -> DynRow
Clone this owned row into a DynRow.
Trait Implementations§
Source§impl Clone for DynRowOwned
impl Clone for DynRowOwned
Source§fn clone(&self) -> DynRowOwned
fn clone(&self) -> DynRowOwned
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DynRowOwned
impl RefUnwindSafe for DynRowOwned
impl Send for DynRowOwned
impl Sync for DynRowOwned
impl Unpin for DynRowOwned
impl UnwindSafe for DynRowOwned
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