pub struct Painter { /* private fields */ }
Expand description
Implementation of the output to the terminal
Implementations§
source§impl Painter
impl Painter
sourcepub fn screen_height(&self) -> u16
pub fn screen_height(&self) -> u16
Height of the current terminal window
sourcepub fn screen_width(&self) -> u16
pub fn screen_width(&self) -> u16
Width of the current terminal window
sourcepub fn remaining_lines(&self) -> u16
pub fn remaining_lines(&self) -> u16
Returns the available lines from the prompt down
Auto Trait Implementations§
impl RefUnwindSafe for Painter
impl Send for Painter
impl Sync for Painter
impl Unpin for Painter
impl UnwindSafe for Painter
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