pub struct Terminal { /* private fields */ }Implementations§
Source§impl Terminal
impl Terminal
pub fn new() -> Result<Self>
pub fn width(&self) -> u16
pub fn height(&self) -> u16
Sourcepub fn render_frame(&self, frame: String) -> Result<()>
pub fn render_frame(&self, frame: String) -> Result<()>
Render frame atomically - all commands in one execute!()
pub fn cleanup(&self) -> Result<()>
pub fn check_input(&self) -> Result<InputAction>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Terminal
impl RefUnwindSafe for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnsafeUnpin for Terminal
impl UnwindSafe for Terminal
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