pub struct NilRenderer;Expand description
NilRenderer is a no-op renderer implementation.
Trait Implementations§
Source§impl Clone for NilRenderer
impl Clone for NilRenderer
Source§fn clone(&self) -> NilRenderer
fn clone(&self) -> NilRenderer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NilRenderer
Source§impl Debug for NilRenderer
impl Debug for NilRenderer
Source§impl Default for NilRenderer
impl Default for NilRenderer
Source§fn default() -> NilRenderer
fn default() -> NilRenderer
Returns the “default value” for a type. Read more
Source§impl Renderer for NilRenderer
impl Renderer for NilRenderer
Source§fn close(&mut self) -> Result<(), Box<dyn Error>>
fn close(&mut self) -> Result<(), Box<dyn Error>>
Closes the renderer and flushes any remaining data.
Source§fn flush(&mut self, _closing: bool) -> Result<(), Box<dyn Error>>
fn flush(&mut self, _closing: bool) -> Result<(), Box<dyn Error>>
Flushes renderer output buffer to terminal stdout.
Source§fn insert_above(&mut self, _s: String) -> Result<(), Box<dyn Error>>
fn insert_above(&mut self, _s: String) -> Result<(), Box<dyn Error>>
Inserts unmanaged lines above the TUI renderer.
Source§fn clear_screen(&mut self)
fn clear_screen(&mut self)
Clears terminal screen.
Source§fn write_string(&mut self, _s: &str) -> Result<usize, Box<dyn Error>>
fn write_string(&mut self, _s: &str) -> Result<usize, Box<dyn Error>>
Write raw string to output.
Source§fn set_optimizations(
&mut self,
_hard_tabs: bool,
_backspace: bool,
_map_nl: bool,
)
fn set_optimizations( &mut self, _hard_tabs: bool, _backspace: bool, _map_nl: bool, )
Sets the cursor movement optimizations (hard tabs, backspace,
newline mapping).
Source§fn set_color_profile(&mut self, _p: Profile)
fn set_color_profile(&mut self, _p: Profile)
Sets the terminal color profile used for downsampling colors.
Auto Trait Implementations§
impl Freeze for NilRenderer
impl RefUnwindSafe for NilRenderer
impl Send for NilRenderer
impl Sync for NilRenderer
impl Unpin for NilRenderer
impl UnsafeUnpin for NilRenderer
impl UnwindSafe for NilRenderer
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