Clean compile with redesigned element traits

This commit is contained in:
Nathan Sobo 2023-11-18 21:51:47 -07:00
parent 0673606de8
commit 33cd6f520a
35 changed files with 278 additions and 216 deletions

View file

@ -60,10 +60,6 @@ impl<V: 'static> ParentElement<V> for Overlay<V> {
impl<V: 'static> Element<V> for Overlay<V> {
type State = OverlayState;
fn element_id(&self) -> Option<crate::ElementId> {
None
}
fn layout(
&mut self,
view_state: &mut V,
@ -160,6 +156,10 @@ impl<V: 'static> Element<V> for Overlay<V> {
impl<V: 'static> RenderOnce<V> for Overlay<V> {
type Element = Self;
fn element_id(&self) -> Option<crate::ElementId> {
None
}
fn render_once(self) -> Self::Element {
self
}