Skip to main content

DataFrameRowSplit

Trait DataFrameRowSplit 

Source
#[doc(hidden)]
pub trait DataFrameRowSplit: Sized { // Required method fn rows_into_dataframe_split(rows: Vec<Self>) -> List; }
Expand description

Row → split-representation glue emitted by #[derive(DataFrameRow)] on enum row types.

Same orphan-rule bridge as DataFrameRowConvert: the derive cannot write impl IntoDataFrameSplit for Vec<Row> in the user crate (Row is covered by Vec<_>), so it implements this #[doc(hidden)] trait on the local enum type and miniextendr_api carries the blanket IntoDataFrameSplit impl for Vec<T: DataFrameRowSplit> below.

Deliberately a separate bridge from DataFrameRowConvert: the split representation only exists for enums, and a method here (even defaulted) would grow the verb onto every struct row type. Users call the public rows.into_dataframe_split() verb.

Required Methods§

Source

fn rows_into_dataframe_split(rows: Vec<Self>) -> List

Partition a row vector by variant into one data.frame per variant.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§