minitel

Struct MinitelBackend

Source
pub struct MinitelBackend<S>{
    pub minitel: Minitel<S>,
    /* private fields */
}
Expand description

Ratatui minitel backend

Fields§

§minitel: Minitel<S>

Implementations§

Source§

impl<S> MinitelBackend<S>

Source

pub fn new(minitel: Minitel<S>) -> MinitelBackend<S>

Trait Implementations§

Source§

impl<S> Backend for MinitelBackend<S>

Source§

fn draw<'a, I>(&mut self, content: I) -> Result<(), Error>
where I: Iterator<Item = (u16, u16, &'a Cell)>,

Draw the given content to the terminal screen. Read more
Source§

fn hide_cursor(&mut self) -> Result<(), Error>

Hide the cursor on the terminal screen. Read more
Source§

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>

Get the current cursor position on the terminal screen. Read more
Source§

fn set_cursor_position<P>(&mut self, position: P) -> Result<(), Error>
where P: Into<Position>,

Set the cursor position on the terminal screen to the given x and y coordinates. Read more
Source§

fn clear(&mut self) -> Result<(), Error>

Clears the whole terminal screen Read more
Source§

fn size(&self) -> Result<Size, Error>

Get the size of the terminal screen in columns/rows as a Size. Read more
Source§

fn window_size(&mut self) -> Result<WindowSize, Error>

Get the size of the terminal screen in columns/rows and pixels as a WindowSize. Read more
Source§

fn flush(&mut self) -> Result<(), Error>

Flush any buffered content to the terminal screen.
Source§

fn append_lines(&mut self, _n: u16) -> Result<(), Error>

Insert n line breaks to the terminal screen. Read more
Source§

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
Source§

fn set_cursor(&mut self, x: u16, y: u16) -> Result<(), Error>

👎Deprecated: the method set_cursor_position indicates more clearly what about the cursor to set
Set the cursor position on the terminal screen to the given x and y coordinates. Read more
Source§

fn clear_region(&mut self, clear_type: ClearType) -> Result<(), Error>

Clears a specific region of the terminal specified by the ClearType parameter 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V