Add a compile test for the element derive

This commit is contained in:
Mikayla
2023-08-11 18:00:12 -07:00
parent ffffbbea1f
commit 7970406694
5 changed files with 27 additions and 2 deletions
+4
View File
@@ -201,6 +201,10 @@ pub trait Element<V: View>: 'static {
}
}
pub trait RenderElement {
fn render<V: View>(&mut self, view: &mut V, cx: &mut ViewContext<V>) -> AnyElement<V>;
}
trait AnyElementState<V: View> {
fn layout(
&mut self,