pub struct CursiveTestingBackend { /* private fields */ }
Expand description
The testing backend. It feeds a predetermined list of events to the Cursive event loop and stores a virtual terminal for Cursive to draw on.
Implementations§
Trait Implementations§
Source§impl Backend for CursiveTestingBackend
impl Backend for CursiveTestingBackend
Source§fn has_colors(&self) -> bool
fn has_colors(&self) -> bool
Should return
true
if this backend supports colors.Source§fn screen_size(&self) -> Vec2
fn screen_size(&self) -> Vec2
Returns the screen size.
Source§fn set_effect(&self, _effect: Effect)
fn set_effect(&self, _effect: Effect)
Enables the given effect. Read more
Source§fn unset_effect(&self, _effect: Effect)
fn unset_effect(&self, _effect: Effect)
Disables the given effect.
Auto Trait Implementations§
impl !Freeze for CursiveTestingBackend
impl !RefUnwindSafe for CursiveTestingBackend
impl !Send for CursiveTestingBackend
impl !Sync for CursiveTestingBackend
impl Unpin for CursiveTestingBackend
impl !UnwindSafe for CursiveTestingBackend
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