add minimal example
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#![feature(const_destruct)]
|
||||
#![feature(portable_simd)]
|
||||
#![feature(gen_blocks)]
|
||||
#![feature(associated_type_defaults)]
|
||||
|
||||
pub mod core;
|
||||
pub mod layout;
|
||||
|
||||
@@ -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