Struct indicatif::InMemoryTerm
source · [−]pub struct InMemoryTerm { /* private fields */ }
Available on crate feature
in_memory
only.Expand description
A thin wrapper around vt100::Parser
.
This is just an Arc
around its internal state, so it can be freely cloned.
Implementations
Trait Implementations
sourceimpl Clone for InMemoryTerm
impl Clone for InMemoryTerm
sourcefn clone(&self) -> InMemoryTerm
fn clone(&self) -> InMemoryTerm
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InMemoryTerm
impl Debug for InMemoryTerm
sourceimpl TermLike for InMemoryTerm
impl TermLike for InMemoryTerm
sourcefn move_cursor_up(&self, n: usize) -> Result<()>
fn move_cursor_up(&self, n: usize) -> Result<()>
Move the cursor up by n
lines
sourcefn move_cursor_down(&self, n: usize) -> Result<()>
fn move_cursor_down(&self, n: usize) -> Result<()>
Move the cursor down by n
lines
sourcefn move_cursor_right(&self, n: usize) -> Result<()>
fn move_cursor_right(&self, n: usize) -> Result<()>
Move the cursor right by n
lines
sourcefn move_cursor_left(&self, n: usize) -> Result<()>
fn move_cursor_left(&self, n: usize) -> Result<()>
Move the cursor left by n
lines
sourcefn write_line(&self, s: &str) -> Result<()>
fn write_line(&self, s: &str) -> Result<()>
Write a string and add a newline.
sourcefn clear_line(&self) -> Result<()>
fn clear_line(&self) -> Result<()>
Clear the current line and reset the cursor to beginning of the line
fn flush(&self) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for InMemoryTerm
impl Send for InMemoryTerm
impl Sync for InMemoryTerm
impl Unpin for InMemoryTerm
impl UnwindSafe for InMemoryTerm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more