mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
wip: render: remove render! macro
This commit is contained in:
parent
bf165c6be1
commit
1d4db3c629
13 changed files with 337 additions and 304 deletions
|
|
@ -106,8 +106,8 @@ pub trait ExitableComponent<T, U>: Exit + Component<T, U> {
|
|||
impl<E: Exit + Component<T, U>, T, U> ExitableComponent<T, U> for E {}
|
||||
|
||||
/// Run the main loop.
|
||||
pub fn run <'a, R> (state: Arc<RwLock<R>>) -> Usually<Arc<RwLock<R>>>
|
||||
where R: Render<TuiOutput<'a>, Rect> + Handle + Sized + 'static
|
||||
pub fn run <R> (state: Arc<RwLock<R>>) -> Usually<Arc<RwLock<R>>>
|
||||
where R: for <'a> Render<TuiOutput<'a>, Rect> + Handle + Sized + 'static
|
||||
{
|
||||
let exited = Arc::new(AtomicBool::new(false));
|
||||
let _input_thread = input_thread(&exited, &state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue