ops: fix Map::east/south with example

This commit is contained in:
🪞👃🪞 2025-04-25 19:01:02 +03:00
parent 2e9ba1b92d
commit 222e10239b
6 changed files with 19 additions and 9 deletions

View file

@ -62,9 +62,9 @@ where
get_item: impl Fn(A, usize)->B + Send + Sync
) -> Map<
E, A,
Push<E::Unit, Align<Fixed<E::Unit, Fill<B>>>>,
Push<E::Unit, Align<Fixed<E::Unit, B>>>,
I, F,
impl Fn(A, usize)->Push<E::Unit, Align<Fixed<E::Unit, Fill<B>>>> + Send + Sync
impl Fn(A, usize)->Push<E::Unit, Align<Fixed<E::Unit, B>>> + Send + Sync
> {
Map {
__: PhantomData,
@ -75,7 +75,7 @@ where
for i in 0..index {
push = push + size;
}
Push::x(push, Align::w(Fixed::x(size, Fill::y(get_item(item, index)))))
Push::x(push, Align::w(Fixed::x(size, get_item(item, index))))
}
}
}
@ -86,9 +86,9 @@ where
get_item: impl Fn(A, usize)->B + Send + Sync
) -> Map<
E, A,
Push<E::Unit, Fixed<E::Unit, Fill<B>>>,
Push<E::Unit, Align<Fixed<E::Unit, B>>>,
I, F,
impl Fn(A, usize)->Push<E::Unit, Fixed<E::Unit, Fill<B>>> + Send + Sync
impl Fn(A, usize)->Push<E::Unit, Align<Fixed<E::Unit, B>>> + Send + Sync
> where
E: Output,
B: Render<E>,
@ -104,7 +104,7 @@ where
for i in 0..index {
push = push + size;
}
Push::y(push, Fixed::y(size, Fill::x(get_item(item, index))))
Push::y(push, Align::n(Fixed::y(size, get_item(item, index))))
}
}
}