pub struct RecordingBackend { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Backend for RecordingBackend
impl Backend for RecordingBackend
Source§fn draw<'a, I>(&mut self, content: I) -> Result<(), Self::Error>
fn draw<'a, I>(&mut self, content: I) -> Result<(), Self::Error>
Draw the given content to the terminal screen. Read more
Source§fn append_lines(&mut self, lines: u16) -> Result<(), Self::Error>
fn append_lines(&mut self, lines: u16) -> Result<(), Self::Error>
Insert
n line breaks to the terminal screen. Read moreSource§fn hide_cursor(&mut self) -> Result<(), Self::Error>
fn hide_cursor(&mut self) -> Result<(), Self::Error>
Hide the cursor on the terminal screen. Read more
Source§fn show_cursor(&mut self) -> Result<(), Self::Error>
fn show_cursor(&mut self) -> Result<(), Self::Error>
Show the cursor on the terminal screen. Read more
Source§fn get_cursor_position(&mut self) -> Result<Position, Self::Error>
fn get_cursor_position(&mut self) -> Result<Position, Self::Error>
Get the current cursor position on the terminal screen. Read more
Source§fn set_cursor_position<P: Into<Position>>(
&mut self,
position: P,
) -> Result<(), Self::Error>
fn set_cursor_position<P: Into<Position>>( &mut self, position: P, ) -> Result<(), Self::Error>
Set the cursor position on the terminal screen to the given x and y coordinates. Read more
Source§fn clear(&mut self) -> Result<(), Self::Error>
fn clear(&mut self) -> Result<(), Self::Error>
Clears all character cells in the terminal’s visible display area. Read more
Source§fn window_size(&mut self) -> Result<WindowSize, Self::Error>
fn window_size(&mut self) -> Result<WindowSize, Self::Error>
Get the size of the terminal screen in columns/rows and pixels as a
WindowSize. Read moreSource§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush any backend-buffered output to the terminal screen. Read more
Source§fn scroll_region_up(
&mut self,
region: Range<u16>,
lines: u16,
) -> Result<(), Self::Error>
fn scroll_region_up( &mut self, region: Range<u16>, lines: u16, ) -> Result<(), Self::Error>
Scroll a region of the screen upwards, where a region is specified by a (half-open) range
of rows. Read more
Source§fn scroll_region_down(
&mut self,
region: Range<u16>,
lines: u16,
) -> Result<(), Self::Error>
fn scroll_region_down( &mut self, region: Range<u16>, lines: u16, ) -> Result<(), Self::Error>
Scroll a region of the screen downwards, where a region is specified by a (half-open) range
of rows. Read more
Source§impl BuffersReader for RecordingBackend
impl BuffersReader for RecordingBackend
Auto Trait Implementations§
impl Freeze for RecordingBackend
impl RefUnwindSafe for RecordingBackend
impl Send for RecordingBackend
impl Sync for RecordingBackend
impl Unpin for RecordingBackend
impl UnsafeUnpin for RecordingBackend
impl UnwindSafe for RecordingBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.