extendr_api::scalar::macros

Macro gen_sum_iter

Source
macro_rules! gen_sum_iter {
    ($type : ty) => { ... };
}
Expand description

Generates an implementation of std::iter::Sum for a scalar type

This macro requires the following argument:

  • $type - The Type to implement std::iter::Sum for

Example Usage:

gen_sum_iter!(Rint);