pub struct ProcessTerminal { /* private fields */ }Expand description
Real terminal backed by stdout.
Uses crossterm for raw-mode management, alternate screen, and cursor
control. When constructed via new_test (available under #[cfg(test)]),
it writes to an in-memory buffer and reports a fixed size of 80×24, which is
useful for unit-testing code paths that require a Terminal but do not
need a real TTY.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessTerminal
impl !Send for ProcessTerminal
impl !Sync for ProcessTerminal
impl !UnwindSafe for ProcessTerminal
impl Freeze for ProcessTerminal
impl Unpin for ProcessTerminal
impl UnsafeUnpin for ProcessTerminal
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