Crate extendr_macros

Source
Expand description

Macros for generating wrappers for rust functions.

Modules§

R 🔒
call 🔒
dataframe 🔒
extendr_conversion 🔒
extendr_function 🔒
extendr_impl 🔒
extendr_module 🔒
extendr_options 🔒
list 🔒
list_struct 🔒
pairlist 🔒
pairs 🔒
Internal module for parsing R-like variadic arguments.
wrappers 🔒
This is responsible for generating the C functions that act as wrappers of the exported Rust functions.

Macros§

R
Execute R code by parsing and evaluating tokens.
Rraw
Execute R code by parsing and evaluating tokens but without expanding parameters.
call
Call a function or primitive defined by a text expression with arbitrary parameters. This currently works by parsing and evaluating the string in R, but will probably acquire some shortcuts for simple expressions, for example by caching symbols and constant values.
extendr_module
Define a module and export symbols to R Example:
impl_try_from_robj_tuples
list
Create a List R object from a list of name-value pairs.
pairlist
Create a Pairlist R object from a list of name-value pairs.

Attribute Macros§

extendr
The #[extendr]-macro may be placed on three items

Derive Macros§

IntoDataFrameRow
Enable the construction of dataframes from arrays of structures.
IntoRobj
Derives an implementation of From<Struct> for Robj and From<&Struct> for Robj on this struct.
TryFromRobj
Derives an implementation of TryFrom<Robj> for Struct and TryFrom<&Robj> for Struct on this struct.