pub struct DynRow(pub Vec<Option<DynCell>>);
Expand description
A thin row wrapper used to append into a set of dynamic column builders.
Tuple Fields§
§0: Vec<Option<DynCell>>
Implementations§
Source§impl DynRow
impl DynRow
Sourcepub fn append_into(
self,
cols: &mut [Box<dyn DynColumnBuilder>],
) -> Result<(), DynError>
pub fn append_into( self, cols: &mut [Box<dyn DynColumnBuilder>], ) -> Result<(), DynError>
Append this row into the builders (1:1 by index). Returns an error if the number of cells does not match the number of columns, or if any cell fails type validation for the target column.
§Errors
Returns a DynError
for arity mismatches or type/builder errors while appending.
Sourcepub fn append_into_with_fields(
self,
fields: &Fields,
cols: &mut [Box<dyn DynColumnBuilder>],
) -> Result<(), DynError>
pub fn append_into_with_fields( self, fields: &Fields, cols: &mut [Box<dyn DynColumnBuilder>], ) -> Result<(), DynError>
Append this row into the builders using field metadata to enrich errors.
Use this from DynBuilders
so type mismatches can report column names
and expected vs found types.
§Errors
Returns a DynError
for arity mismatches or type/builder errors while appending.
Auto Trait Implementations§
impl Freeze for DynRow
impl RefUnwindSafe for DynRow
impl Send for DynRow
impl Sync for DynRow
impl Unpin for DynRow
impl UnwindSafe for DynRow
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