Add a compile test for the element derive
This commit is contained in:
parent
ffffbbea1f
commit
7970406694
5 changed files with 27 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue