fixed Map operator!

This commit is contained in:
🪞👃🪞 2025-01-06 23:12:25 +01:00
parent 7ff731133c
commit 38e2e64751
11 changed files with 362 additions and 436 deletions

View file

@ -12,7 +12,7 @@ pub trait Render<E: Output>: Send + Sync {
pub type RenderDyn<'a, Output> = dyn Render<Output> + 'a;
impl<'a, E: Output> Content<E> for &RenderDyn<'a, E> where Self: Sized {
fn content (&self) -> impl Render<E> { *self }
fn content (&self) -> impl Render<E> { self.deref() }
fn layout (&self, area: E::Area) -> E::Area { Render::layout(self.deref(), area) }
fn render (&self, output: &mut E) { Render::render(self.deref(), output) }
}