pub struct RendererLayout<K> { /* private fields */ }Expand description
Terminal-size-dependent renderer layout without terminal I/O.
The layout keeps each pane’s vertical viewport offset between calls. This
mirrors super::Renderer behavior while allowing layout performance to be
measured independently from terminal size queries and stdout writes.
Implementations§
Source§impl<K: Clone + Ord> RendererLayout<K>
impl<K: Clone + Ord> RendererLayout<K>
Sourcepub fn layout<I>(
&mut self,
contents: I,
terminal_width: u16,
terminal_height: u16,
) -> Result<PreparedLayout<K>>where
I: IntoIterator<Item = (K, CreatedGraphemes)>,
pub fn layout<I>(
&mut self,
contents: I,
terminal_width: u16,
terminal_height: u16,
) -> Result<PreparedLayout<K>>where
I: IntoIterator<Item = (K, CreatedGraphemes)>,
Lays out a renderer frame for a known terminal size.
This performs the same content wrapping, truncation, pane allocation,
cursor scrolling, and viewport clipping used by super::Renderer::render,
but performs no terminal I/O.
Trait Implementations§
Source§impl<K: Debug> Debug for RendererLayout<K>
impl<K: Debug> Debug for RendererLayout<K>
Auto Trait Implementations§
impl<K> Freeze for RendererLayout<K>
impl<K> RefUnwindSafe for RendererLayout<K>where
K: RefUnwindSafe,
impl<K> Send for RendererLayout<K>where
K: Send,
impl<K> Sync for RendererLayout<K>where
K: Sync,
impl<K> Unpin for RendererLayout<K>
impl<K> UnsafeUnpin for RendererLayout<K>
impl<K> UnwindSafe for RendererLayout<K>where
K: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more