pub trait SetVirtualDataColumn {
// Required methods
fn write_to(self, col: &mut VirtualDataColumn) -> Result<(), &'static str>;
fn new_column() -> VirtualDataColumn;
fn to_scalar(self) -> Scalar;
}Expand description
Trait for types that can be written to a VirtualDataColumn which
enforces sequential construction.
This trait enables type-safe insertion of values into virtual data columns, ensuring that values are written to columns of the correct type.
Required Methods§
Sourcefn write_to(self, col: &mut VirtualDataColumn) -> Result<(), &'static str>
fn write_to(self, col: &mut VirtualDataColumn) -> Result<(), &'static str>
Writes this value (sequentially) to the given column.
Returns an error if the column type does not match the value type.
Sourcefn new_column() -> VirtualDataColumn
fn new_column() -> VirtualDataColumn
Creates a new empty column of the appropriate type for this value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.