pub struct Backend { /* private fields */ }
Available on crate feature
crossterm-backend
only.Expand description
Backend using crossterm
Implementations
Trait Implementations
sourceimpl Backend for Backend
impl Backend for Backend
sourcefn poll_event(&mut self) -> Option<Event>
fn poll_event(&mut self) -> Option<Event>
Polls the backend for any input. Read more
sourcefn has_colors(&self) -> bool
fn has_colors(&self) -> bool
Should return true
if this backend supports colors.
sourcefn screen_size(&self) -> Vec2
fn screen_size(&self) -> Vec2
Returns the screen size.
sourcefn print_at_rep(&self, pos: Vec2, repetitions: usize, text: &str)
fn print_at_rep(&self, pos: Vec2, repetitions: usize, text: &str)
Efficient method to print repetitions of the same text. Read more
sourcefn set_effect(&self, effect: Effect)
fn set_effect(&self, effect: Effect)
Enables the given effect. Read more
sourcefn unset_effect(&self, effect: Effect)
fn unset_effect(&self, effect: Effect)
Disables the given effect.
Auto Trait Implementations
impl !RefUnwindSafe for Backend
impl Send for Backend
impl !Sync for Backend
impl Unpin for Backend
impl UnwindSafe for Backend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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