pub trait IntoDataFrame: Sized {
// Required method
fn into_dataframe(self) -> Result<DataFrame, DataFrameError>;
}Expand description
Rust data → R data.frame. The data-frame analogue of IntoR.
Implemented by #[derive(DataFrameRow)] on a row struct/enum (for Vec<Row>), by the
blanket impl for any ColumnSource (IntoList-derived rows), and by the serde column
path. Call it on your data: rows.into_dataframe()?.
§Parallel fast path
into_dataframe_par (present only with
feature = "rayon") produces the same DataFrame as
into_dataframe. It defaults to the sequential path, so
every implementor gets a correct _par for free; #[derive(DataFrameRow)] row types
override it with a genuinely parallel column fill (the #777 flattened (column,row-range)
work-list). The verb is stable across feature sets — dropping _par degrades cleanly to
the sequential call.
Required Methods§
Sourcefn into_dataframe(self) -> Result<DataFrame, DataFrameError>
fn into_dataframe(self) -> Result<DataFrame, DataFrameError>
Convert this value into a DataFrame.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".