DynRow

Struct DynRow 

Source
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

Source

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.

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,