#row #polymorphism #anonymous #structural

macro rovv_derive

provide the anonymous row type (poor-man's row polymorphism) in rust

3 unstable releases

0.2.0 Apr 9, 2021
0.1.1 Mar 30, 2021
0.1.0 Mar 30, 2021

#23 in #structural


Used in rovv

MIT/Apache

11KB
233 lines

rovv_derive

parse row! and dyn_row!, and transform them to

  • impl LensRef<Optic![a], A> + LensMut<Optic![b], B> + Lens<Optic![c], C>
  • dyn LensRef<Optic![a], A> + LensMut<Optic![b], B> + Lens<Optic![c], C>

Dependencies

~1.5MB
~37K SLoC