Add a compile test for the element derive

This commit is contained in:
Mikayla 2023-08-11 17:56:56 -07:00
parent ffffbbea1f
commit 7970406694
No known key found for this signature in database
5 changed files with 27 additions and 2 deletions

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,