pub struct MinitelBackend<S>where
S: MinitelRead + MinitelWrite,{
pub minitel: Minitel<S>,
/* private fields */
}Expand description
Ratatui minitel backend
Fields§
§minitel: Minitel<S>Implementations§
Source§impl<S> MinitelBackend<S>where
S: MinitelRead + MinitelWrite,
impl<S> MinitelBackend<S>where
S: MinitelRead + MinitelWrite,
pub fn new(minitel: Minitel<S>) -> MinitelBackend<S>
Trait Implementations§
Source§impl<S> Backend for MinitelBackend<S>where
S: MinitelRead + MinitelWrite,
impl<S> Backend for MinitelBackend<S>where
S: MinitelRead + MinitelWrite,
Source§fn draw<'a, I>(&mut self, content: I) -> Result<(), Error>
fn draw<'a, I>(&mut self, content: I) -> Result<(), Error>
Draw the given content to the terminal screen. Read more
Source§fn hide_cursor(&mut self) -> Result<(), Error>
fn hide_cursor(&mut self) -> Result<(), Error>
Hide the cursor on the terminal screen. Read more
Source§fn show_cursor(&mut self) -> Result<(), Error>
fn show_cursor(&mut self) -> Result<(), Error>
Show the cursor on the terminal screen. Read more
Source§fn get_cursor_position(&mut self) -> Result<Position, Error>
fn get_cursor_position(&mut self) -> Result<Position, Error>
Get the current cursor position on the terminal screen. Read more
Source§fn set_cursor_position<P>(&mut self, position: P) -> Result<(), Error>
fn set_cursor_position<P>(&mut self, position: P) -> Result<(), Error>
Set the cursor position on the terminal screen to the given x and y coordinates. Read more
Source§fn window_size(&mut self) -> Result<WindowSize, Error>
fn window_size(&mut self) -> Result<WindowSize, Error>
Get the size of the terminal screen in columns/rows and pixels as a
WindowSize. Read moreSource§fn append_lines(&mut self, _n: u16) -> Result<(), Error>
fn append_lines(&mut self, _n: u16) -> Result<(), Error>
Insert
n line breaks to the terminal screen. Read moreSource§fn get_cursor(&mut self) -> Result<(u16, u16), Error>
fn get_cursor(&mut self) -> Result<(u16, u16), Error>
👎Deprecated: the method get_cursor_position indicates more clearly what about the cursor to get
Get the current cursor position on the terminal screen. Read more
Auto Trait Implementations§
impl<S> Freeze for MinitelBackend<S>where
S: Freeze,
impl<S> RefUnwindSafe for MinitelBackend<S>where
S: RefUnwindSafe,
impl<S> Send for MinitelBackend<S>where
S: Send,
impl<S> Sync for MinitelBackend<S>where
S: Sync,
impl<S> Unpin for MinitelBackend<S>where
S: Unpin,
impl<S> UnwindSafe for MinitelBackend<S>where
S: UnwindSafe,
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
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 more