pub struct Terminal(/* private fields */);
Implementations§
Source§impl Terminal
impl Terminal
pub fn new() -> Self
pub fn flush(&mut self) -> Result<()>
pub fn poll_events(&mut self) -> Result<Option<TermEvent>, i32>
pub fn cursor_forward(&mut self, count: u16) -> Result<(), Error>
pub fn cursor_back(&mut self, count: u16) -> Result<(), Error>
pub fn clear_to_end_of_line(&mut self) -> Result<(), Error>
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 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