sval-rs / value-bag

Dynamic structured values for Rust
Apache License 2.0
27 stars 3 forks source link

Support capturing sequences without needing sval or serde #85

Closed KodrAus closed 7 months ago

KodrAus commented 7 months ago

Sequences are a fundamental kind of value. Right now, if you want to capture a sequence in a ValueBag you need to use its Serialize or Value implementation. It would be nice to be able to capture sequences primitively too.

To avoid an explosion of variants in the internal enum, we could rely on Fill to do this by adding a fill_seq method on it, then implementing Fill for [T: Fill; N].