Checkpoint

This commit is contained in:
Antonio Scandurra
2023-10-18 16:30:48 +02:00
parent f58a9bad42
commit fecb27232e
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -81,7 +81,11 @@ where
}
}
pub struct Div<V: 'static + Send + Sync, I: ElementIdentity, F: ElementFocusability> {
pub struct Div<
V: 'static + Send + Sync,
I: ElementIdentity = Anonymous,
F: ElementFocusability = NonFocusable,
> {
identity: I,
focusability: F,
children: SmallVec<[AnyElement<V>; 2]>,
+5 -1
View File
@@ -7,7 +7,11 @@ use crate::{
use futures::FutureExt;
use util::ResultExt;
pub struct Img<V: 'static + Send + Sync, I: ElementIdentity, F: ElementFocusability> {
pub struct Img<
V: 'static + Send + Sync,
I: ElementIdentity = Anonymous,
F: ElementFocusability = NonFocusable,
> {
base: Div<V, I, F>,
uri: Option<SharedString>,
grayscale: bool,
+5 -1
View File
@@ -6,7 +6,11 @@ use crate::{
};
use util::ResultExt;
pub struct Svg<V: 'static + Send + Sync, I: ElementIdentity, F: ElementFocusability> {
pub struct Svg<
V: 'static + Send + Sync,
I: ElementIdentity = Anonymous,
F: ElementFocusability = NonFocusable,
> {
base: Div<V, I, F>,
path: Option<SharedString>,
}