pub trait FromDataFrame: Sized {
// Required method
fn from_dataframe(df: &DataFrame) -> Result<Self, DataFrameError>;
}Expand description
R data.frame → Rust data. The data-frame analogue of
TryFromSexp.
Implemented by #[derive(DataFrameRow)] for Vec<Row> and by the serde row path.
§Parallel fast path
from_dataframe_par (feature = "rayon") reads the
same rows as from_dataframe, defaulting to the
sequential reader; the derive overrides it with the #765 off-main-thread row assembly.
Required Methods§
Sourcefn from_dataframe(df: &DataFrame) -> Result<Self, DataFrameError>
fn from_dataframe(df: &DataFrame) -> Result<Self, DataFrameError>
Read rows back out of a DataFrame.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".