1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use osui_element::component; pub type Element = i32; pub trait Component: std::fmt::Debug { type Element; fn create_element(self) -> Self::Element; } #[component] pub fn MyComponent<'a>(age: &'a str) { 0 } fn main() {}