pub struct Backend { /* private fields */ }
Available on crate feature
blt-backend
only.Expand description
Backend using BearLibTerminal
Implementations
sourceimpl Backend
impl Backend
sourcepub fn init() -> Box<dyn Backend>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
pub fn init() -> Box<dyn Backend>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A>where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A>where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
Creates a new BearLibTerminal-based backend.
Trait Implementations
sourceimpl Backend for Backend
impl Backend for Backend
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.
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 poll_event(&mut self) -> Option<Event>
fn poll_event(&mut self) -> Option<Event>
Polls the backend for any input. Read more
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