output, tui: Stack implementation
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-17 10:15:07 +03:00
parent b25977d878
commit a55e84c29f
4 changed files with 85 additions and 2 deletions

View file

@ -12,7 +12,7 @@ impl Output for TuiOut {
type Area = [Self::Unit;4];
#[inline] fn area (&self) -> [u16;4] { self.area }
#[inline] fn area_mut (&mut self) -> &mut [u16;4] { &mut self.area }
#[inline] fn place (&mut self, area: [u16;4], content: &impl Render<TuiOut>) {
#[inline] fn place <T: Render<Self> + ?Sized> (&mut self, area: [u16;4], content: &T) {
let last = self.area();
*self.area_mut() = area;
content.render(self);