wip: gotta remember that only dyn works now

This commit is contained in:
🪞👃🪞 2024-09-09 18:27:05 +03:00
parent 49d2055147
commit 20afc397ea
3 changed files with 20 additions and 56 deletions

View file

@ -80,7 +80,7 @@ pub trait Content {
//()
//}
//}
impl<E: Engine, W> Widget for W where W: Content<Engine = E> {
impl<E: Engine, W: Content<Engine = E>> Widget for W {
type Engine = E;
fn layout (&self, to: E::Area) -> Perhaps<E::Area> {
self.content().layout(to)