dioxus/packages/core-macro/examples/prop_test.rs
2021-06-05 23:47:54 -04:00

20 lines
372 B
Rust

fn main() {}
pub mod dioxus {
pub mod prelude {
pub unsafe trait Properties {
type Builder;
const CAN_BE_MEMOIZED: bool;
fn builder() -> Self::Builder;
}
}
}
#[derive(dioxus_core_macro::Props)]
struct SomeProps {
a: String,
}
#[derive(dioxus_core_macro::Props)]
struct SomePropsTwo<'a> {
a: &'a str,
}