mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
define RenderDyn, RenderBox
This commit is contained in:
parent
ee40fff168
commit
f24d5dfed0
7 changed files with 20 additions and 22 deletions
|
|
@ -12,7 +12,7 @@ fn main () -> Usually<()> {
|
|||
pub struct Example;
|
||||
|
||||
impl EdnLayout<Tui> for &Example {
|
||||
fn get_content <'a> (&'a self, sym: &'a str) -> Box<EdnRender<'a, Tui>> {
|
||||
fn get_content <'a> (&'a self, sym: &'a str) -> RenderBox<'a, Tui> {
|
||||
Box::new(Thunk::new(move||if sym == ":hello" { "Hello world!" } else { "" }))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue