pub struct Renderer<K: Ord + Send + 'static> { /* private fields */ }Expand description
Renderer is responsible for managing and rendering multiple panes in a terminal.
Implementations§
Source§impl<K: Ord + Send + 'static> Renderer<K>
impl<K: Ord + Send + 'static> Renderer<K>
pub fn try_new() -> Result<Self>
pub async fn try_new_with_panes<I>(init_panes: I, draw: bool) -> Result<Self>where
I: IntoIterator<Item = (K, Pane)>,
pub fn update<I>(&self, items: I) -> &Selfwhere
I: IntoIterator<Item = (K, Pane)>,
pub fn remove<I>(&self, items: I) -> &Selfwhere
I: IntoIterator<Item = K>,
pub async fn render(&self) -> Result<()>
Auto Trait Implementations§
impl<K> !Freeze for Renderer<K>
impl<K> !RefUnwindSafe for Renderer<K>
impl<K> Send for Renderer<K>where
K: Sync,
impl<K> Sync for Renderer<K>where
K: Sync,
impl<K> Unpin for Renderer<K>
impl<K> !UnwindSafe for Renderer<K>
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