use dynamic dispatch in render_in

This commit is contained in:
🪞👃🪞 2024-09-15 15:49:10 +03:00
parent ff6751d393
commit c2e91fb432
2 changed files with 3 additions and 4 deletions

View file

@ -26,7 +26,7 @@ pub trait RenderTarget<E: Engine> {
-> E::Area;
fn area_mut (&mut self)
-> &mut E::Area;
fn render_in (&mut self, area: E::Area, widget: &impl Widget<Engine = E>)
fn render_in (&mut self, area: E::Area, widget: &dyn Widget<Engine = E>)
-> Perhaps<E::Area>;
}