wip: Content and Widget traits

This commit is contained in:
🪞👃🪞 2024-09-08 23:48:30 +03:00
parent 5fc7da3aca
commit b944dd5f9e
13 changed files with 209 additions and 36 deletions

View file

@ -18,7 +18,7 @@ pub trait Device<E: Engine>: Component<E> + Process {
/// All things that implement the required traits can be treated as `Device`.
impl<D, E: Engine> Device<E> for D where D: Component<E> + Process {}
impl<E: Engine> Render<E> for Box<dyn Device<E>> {
impl<'a, E: Engine> Render<E> for Box<dyn Device<E> + 'a> {
fn render (&self, to: &mut E) -> Perhaps<E::Rendered> {
(**self).render(to)
}