Checkpoint
This commit is contained in:
@@ -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]>,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user