pub struct Dummy;
Expand description
Dummy backend that does nothing and immediately exits.
Mostly used for testing.
Implementations§
Trait Implementations§
Source§impl Backend for Dummy
impl Backend for Dummy
Source§fn has_colors(&self) -> bool
fn has_colors(&self) -> bool
Should return
true
if this backend supports colors.Source§fn screen_size(&self) -> XY<usize>
fn screen_size(&self) -> XY<usize>
Returns the screen size.
Source§fn set_effect(&self, _: Effect)
fn set_effect(&self, _: Effect)
Enables the given effect. Read more
Source§fn unset_effect(&self, _: Effect)
fn unset_effect(&self, _: Effect)
Disables the given effect.
Source§fn is_persistent(&self) -> bool
fn is_persistent(&self) -> bool
Returns
true
if the backend has persistent output. Read moreAuto Trait Implementations§
impl Freeze for Dummy
impl RefUnwindSafe for Dummy
impl Send for Dummy
impl Sync for Dummy
impl Unpin for Dummy
impl UnwindSafe for Dummy
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