16 lines
235 B
Rust
16 lines
235 B
Rust
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() {}
|