pub struct Termit<'a> { /* private fields */ }Implementations
sourceimpl<'a> Termit<'a>
impl<'a> Termit<'a>
pub fn new(
initial_size: (u16, u16),
events: impl Stream<Item = Result<Event>> + Unpin + 'a,
out: impl Write + 'a
) -> Self
pub async fn step<M>(
&mut self,
model: &mut M,
ui: &mut impl Widget<M>,
lag_ms: u64
) -> Result<()>
pub async fn next_input(&mut self, lag_ms: u64) -> Result<Vec<Event>>
pub fn update<M>(
&mut self,
model: &mut M,
inputs: impl AsRef<[Event]>,
root: &mut impl Widget<M>
) -> Result<()>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Termit<'a>
impl<'a> !Send for Termit<'a>
impl<'a> !Sync for Termit<'a>
impl<'a> Unpin for Termit<'a>
impl<'a> !UnwindSafe for Termit<'a>
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