Skip to main content

derive_prefer_data_frame

Function derive_prefer_data_frame 

Source
pub fn derive_prefer_data_frame(input: DeriveInput) -> Result<TokenStream>
Expand description

Derive PreferDataFrame: adds the PrefersDataFrame marker trait and an IntoR impl that converts to R via IntoDataFrame::into_data_frame, then into_sexp.

The type must implement IntoDataFrame (typically the companion struct generated by #[derive(DataFrameRow)]). The generated IntoR::Error is Infallible.