2021-03-12 20:41:36 +00:00
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
pub mod dioxus {
|
|
|
|
pub mod prelude {
|
2021-06-24 02:32:54 +00:00
|
|
|
pub trait Properties {
|
2021-03-12 20:41:36 +00:00
|
|
|
type Builder;
|
2021-08-08 19:15:16 +00:00
|
|
|
const IS_STATIC: bool;
|
2021-03-12 20:41:36 +00:00
|
|
|
fn builder() -> Self::Builder;
|
2021-06-24 02:32:54 +00:00
|
|
|
unsafe fn memoize(&self, other: &Self) -> bool;
|
2021-03-12 20:41:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-24 02:32:54 +00:00
|
|
|
|
|
|
|
/// This implementation should require a "PartialEq" because it memoizes (no external references)
|
|
|
|
#[derive(PartialEq, dioxus_core_macro::Props)]
|
2021-03-12 20:41:36 +00:00
|
|
|
struct SomeProps {
|
|
|
|
a: String,
|
|
|
|
}
|
|
|
|
|
2021-06-24 02:32:54 +00:00
|
|
|
/// This implementation does not require a "PartialEq" because it does not memoize
|
2021-03-12 20:41:36 +00:00
|
|
|
#[derive(dioxus_core_macro::Props)]
|
|
|
|
struct SomePropsTwo<'a> {
|
2021-09-22 05:25:28 +00:00
|
|
|
_a: &'a str,
|
2021-03-12 20:41:36 +00:00
|
|
|
}
|