Closed dhardy closed 1 year ago
It turns out that the (non-mut) Node does not need a data ref at all. Simplify by replacing with &dyn Layout, then rename NodeMut → Node.
Node
data
&dyn Layout
NodeMut
This also cleans up widget traits a little, reducing to just Layout, Events and Widget.
Layout
Events
Widget
It turns out that the (non-mut)
Node
does not need adata
ref at all. Simplify by replacing with&dyn Layout
, then renameNodeMut
→Node
.This also cleans up widget traits a little, reducing to just
Layout
,Events
andWidget
.