ronniec95 / xladd-derive

Macros to help write Excel User defined functions easily in Rust
MIT License
18 stars 1 forks source link

Enhancement: From Vec/slice of Variant #7

Closed vron closed 3 years ago

vron commented 3 years ago

The original xladd had a Variant method from_array() which allowed construction for 2d arrays of Variants.

This is replaced by the (generally much nicer) implementation of From trait for various types.

However , without using ndarray there seems to be now way to construct a 2d array of varying types - I.e it would be usefull to have a methof similar to:

impl From<&(&[f64], usize)> for Variant {

But instead for slice of Variants:

impl From<&(&[Variant], usize)> for Variant {
ronniec95 commented 3 years ago

Ill add this today.

ronniec95 commented 3 years ago

Done