Fixing usability of nested lattice types in the #[derive(Lattice)]
macro
#1388
MingweiSamuel
started this conversation in
Ideas
Replies: 1 comment
-
Next steps: Design needed. Move to a feature branch until we have a design ready. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Rohit ran into this - want to use the
#[derive(Lattice)]
macro, but then you can't use the inner fields for aLatticeBimorphism
Possible fixes:
state
references - something we have thought about for a long time. If we could do something likestate() -> map(|x| &x.system)
to map the state reference (not the items) and use that reference in the lattice bimorphism, that work work.#[derive(LatticeBimorphism)]
macro in the same was as derivingLattice
. But kinda clunky, have to align fields.Beta Was this translation helpful? Give feedback.
All reactions