Add missing bounds to Themed
This commit is contained in:
parent
2285a35016
commit
8117e7933c
1 changed files with 6 additions and 2 deletions
|
@ -150,7 +150,8 @@ pub struct Themed<E> {
|
||||||
|
|
||||||
impl<E> IntoAnyElement<E::ViewState> for Themed<E>
|
impl<E> IntoAnyElement<E::ViewState> for Themed<E>
|
||||||
where
|
where
|
||||||
E: Element,
|
E: 'static + Element + Send + Sync,
|
||||||
|
E::ElementState: Send + Sync,
|
||||||
{
|
{
|
||||||
fn into_any(self) -> AnyElement<E::ViewState> {
|
fn into_any(self) -> AnyElement<E::ViewState> {
|
||||||
AnyElement::new(self)
|
AnyElement::new(self)
|
||||||
|
@ -160,7 +161,10 @@ where
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
struct ThemeStack(Vec<Theme>);
|
struct ThemeStack(Vec<Theme>);
|
||||||
|
|
||||||
impl<E: Element> Element for Themed<E> {
|
impl<E: 'static + Element + Send + Sync> Element for Themed<E>
|
||||||
|
where
|
||||||
|
E::ElementState: Send + Sync,
|
||||||
|
{
|
||||||
type ViewState = E::ViewState;
|
type ViewState = E::ViewState;
|
||||||
type ElementState = E::ElementState;
|
type ElementState = E::ElementState;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue