add minimal example
This commit is contained in:
1 parent
f7b100e00c
commit
db888416b6
3 files changed
+22
-1
No files matched your search
@@ -9,6 +9,7 @@
|
||||
#![feature(const_destruct)]
|
||||
#![feature(portable_simd)]
|
||||
#![feature(gen_blocks)]
|
||||
#![feature(associated_type_defaults)]
|
||||
|
||||
pub mod core;
|
||||
pub mod layout;
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ pub struct DefaultUi {
|
||||
}
|
||||
|
||||
pub trait DefaultUiState: 'static {
|
||||
type Event: 'static;
|
||||
type Event: 'static = ();
|
||||
fn new(ui: DefaultUi, proxy: Proxy<Self::Event>) -> Self;
|
||||
fn ui(&mut self) -> &mut DefaultUi;
|
||||
#[allow(unused_variables)]
|
||||
|
||||
Reference in new issue
Block a user