Michael Tang
Michael Tang
(Be aware this is a half-baked idea) I think I mean some consistent mapping from markup elements to code. E.g. If all widgets provide an "attribute setter" interface (e.g. `Widget::set_attribute(attribute_name:...
I think the attribute would need to take `&dyn Any` (`+ Clone`?), otherwise, I'm not sure what an implementation could look like ```rust struct Foo { val: i32, } impl...
I think something like that world work! To support non-num-primitives, I think it'd still need `Any`... we're getting into weird territory, but maybe something like this? https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=082e30cb889efedf3b83d0b4e9471f51 Edit: this assumes...