leptos::tachys::html::style

Trait IntoStyle

Source
pub trait IntoStyle: Send {
    type AsyncOutput: IntoStyle;
    type State;
    type Cloneable: IntoStyle + Clone;
    type CloneableOwned: IntoStyle + Clone + 'static;

    // Required methods
    fn to_html(self, style: &mut String);
    fn hydrate<const FROM_SERVER: bool>(self, el: &Element) -> Self::State;
    fn build(self, el: &Element) -> Self::State;
    fn rebuild(self, state: &mut Self::State);
    fn into_cloneable(self) -> Self::Cloneable;
    fn into_cloneable_owned(self) -> Self::CloneableOwned;
    fn dry_resolve(&mut self);
    fn resolve(self) -> impl Future<Output = Self::AsyncOutput> + Send;
    fn reset(state: &mut Self::State);
}
Expand description

Any type that can be added to the style attribute or set as a style in the CssStyleDeclaration.

This could be a plain string, or a property name-value pair.

Required Associated Types§

Source

type AsyncOutput: IntoStyle

The type after all async data have resolved.

Source

type State

The view state retained between building and rebuilding.

Source

type Cloneable: IntoStyle + Clone

An equivalent value that can be cloned.

Source

type CloneableOwned: IntoStyle + Clone + 'static

An equivalent value that can be cloned and is 'static.

Required Methods§

Source

fn to_html(self, style: &mut String)

Renders the style to HTML.

Source

fn hydrate<const FROM_SERVER: bool>(self, el: &Element) -> Self::State

Adds interactivity as necessary, given DOM nodes that were created from HTML that has either been rendered on the server, or cloned for a <template>.

Source

fn build(self, el: &Element) -> Self::State

Adds this style to the element during client-side rendering.

Source

fn rebuild(self, state: &mut Self::State)

Updates the value.

Source

fn into_cloneable(self) -> Self::Cloneable

Converts this to a cloneable type.

Source

fn into_cloneable_owned(self) -> Self::CloneableOwned

Converts this to a cloneable, owned type.

Source

fn dry_resolve(&mut self)

“Runs” the attribute without other side effects. For primitive types, this is a no-op. For reactive types, this can be used to gather data about reactivity or about asynchronous data that needs to be loaded.

Source

fn resolve(self) -> impl Future<Output = Self::AsyncOutput> + Send

“Resolves” this into a type that is not waiting for any asynchronous data.

Source

fn reset(state: &mut Self::State)

Reset the styling to the state before this style was added.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoStyle for (Arc<str>, Arc<str>)

Source§

fn reset(state: &mut <(Arc<str>, Arc<str>) as IntoStyle>::State)

Reset the renderer to the state before this style was added.

Source§

type AsyncOutput = (Arc<str>, Arc<str>)

Source§

type State = (CssStyleDeclaration, Arc<str>, Arc<str>)

Source§

type Cloneable = (Arc<str>, Arc<str>)

Source§

type CloneableOwned = (Arc<str>, Arc<str>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(Arc<str>, Arc<str>) as IntoStyle>::State

Source§

fn build(self, el: &Element) -> <(Arc<str>, Arc<str>) as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <(Arc<str>, Arc<str>) as IntoStyle>::State)

Source§

fn into_cloneable(self) -> <(Arc<str>, Arc<str>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned(self) -> <(Arc<str>, Arc<str>) as IntoStyle>::Cloneable

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve(self) -> <(Arc<str>, Arc<str>) as IntoStyle>::AsyncOutput

Source§

impl IntoStyle for String

Source§

impl IntoStyle for Arc<str>

Source§

type AsyncOutput = Arc<str>

Source§

type State = (Element, Arc<str>)

Source§

type Cloneable = Arc<str>

Source§

type CloneableOwned = Arc<str>

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <Arc<str> as IntoStyle>::State

Source§

fn build(self, el: &Element) -> <Arc<str> as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <Arc<str> as IntoStyle>::State)

Source§

fn into_cloneable(self) -> <Arc<str> as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned(self) -> <Arc<str> as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve(self) -> <Arc<str> as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <Arc<str> as IntoStyle>::State)

Source§

impl<'a> IntoStyle for &'a str

Source§

type AsyncOutput = &'a str

Source§

type State = (Element, &'a str)

Source§

type Cloneable = &'a str

Source§

type CloneableOwned = Arc<str>

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <&'a str as IntoStyle>::State

Source§

fn build(self, el: &Element) -> <&'a str as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <&'a str as IntoStyle>::State)

Source§

fn into_cloneable(self) -> <&'a str as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned(self) -> <&'a str as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve(self) -> <&'a str as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <&'a str as IntoStyle>::State)

Source§

impl<'a> IntoStyle for (&'a str, &'a str)

Source§

fn reset(state: &mut <(&'a str, &'a str) as IntoStyle>::State)

Reset the renderer to the state before this style was added.

Source§

type AsyncOutput = (&'a str, &'a str)

Source§

type State = (CssStyleDeclaration, &'a str, &'a str)

Source§

type Cloneable = (&'a str, &'a str)

Source§

type CloneableOwned = (Arc<str>, Arc<str>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'a str, &'a str) as IntoStyle>::State

Source§

fn build(self, el: &Element) -> <(&'a str, &'a str) as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <(&'a str, &'a str) as IntoStyle>::State)

Source§

fn into_cloneable(self) -> <(&'a str, &'a str) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'a str, &'a str) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve(self) -> <(&'a str, &'a str) as IntoStyle>::AsyncOutput

Source§

impl<'a> IntoStyle for (&'a str, String)

Source§

type AsyncOutput = (&'a str, String)

Source§

type State = (CssStyleDeclaration, &'a str, String)

Source§

type Cloneable = (Arc<str>, Arc<str>)

Source§

type CloneableOwned = (Arc<str>, Arc<str>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'a str, String) as IntoStyle>::State

Source§

fn build(self, el: &Element) -> <(&'a str, String) as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <(&'a str, String) as IntoStyle>::State)

Source§

fn into_cloneable(self) -> <(&'a str, String) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'a str, String) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve(self) -> <(&'a str, String) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'a str, String) as IntoStyle>::State)

Source§

impl<F, S> IntoStyle for (&'static str, F)
where F: ReactiveFunction<Output = S>, S: Into<Cow<'static, str>> + 'static,

Source§

type AsyncOutput = (&'static str, F)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, Arc<Mutex<dyn FnMut() -> S + Send>>)

Source§

type CloneableOwned = (&'static str, Arc<Mutex<dyn FnMut() -> S + Send>>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, F) as IntoStyle>::State

Source§

fn build(self, el: &Element) -> <(&'static str, F) as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <(&'static str, F) as IntoStyle>::State)

Source§

fn into_cloneable(self) -> <(&'static str, F) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, F) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve(self) -> <(&'static str, F) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, F) as IntoStyle>::State)

Source§

impl<S> IntoStyle for (&'static str, ArcMemo<S>)
where ArcMemo<S>: Get<Value = S>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, ArcMemo<S>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, ArcMemo<S>)

Source§

type CloneableOwned = (&'static str, ArcMemo<S>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, ArcMemo<S>) as IntoStyle>::State

Source§

fn build(self, el: &Element) -> <(&'static str, ArcMemo<S>) as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <(&'static str, ArcMemo<S>) as IntoStyle>::State)

Source§

fn into_cloneable(self) -> <(&'static str, ArcMemo<S>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, ArcMemo<S>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve(self) -> <(&'static str, ArcMemo<S>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, ArcMemo<S>) as IntoStyle>::State)

Source§

impl<S> IntoStyle for (&'static str, ArcReadSignal<S>)
where ArcReadSignal<S>: Get<Value = S>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, ArcReadSignal<S>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, ArcReadSignal<S>)

Source§

type CloneableOwned = (&'static str, ArcReadSignal<S>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, ArcReadSignal<S>) as IntoStyle>::State

Source§

fn build( self, el: &Element, ) -> <(&'static str, ArcReadSignal<S>) as IntoStyle>::State

Source§

fn rebuild( self, state: &mut <(&'static str, ArcReadSignal<S>) as IntoStyle>::State, )

Source§

fn into_cloneable( self, ) -> <(&'static str, ArcReadSignal<S>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, ArcReadSignal<S>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve( self, ) -> <(&'static str, ArcReadSignal<S>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, ArcReadSignal<S>) as IntoStyle>::State)

Source§

impl<S> IntoStyle for (&'static str, ArcRwSignal<S>)
where ArcRwSignal<S>: Get<Value = S>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, ArcRwSignal<S>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, ArcRwSignal<S>)

Source§

type CloneableOwned = (&'static str, ArcRwSignal<S>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, ArcRwSignal<S>) as IntoStyle>::State

Source§

fn build( self, el: &Element, ) -> <(&'static str, ArcRwSignal<S>) as IntoStyle>::State

Source§

fn rebuild( self, state: &mut <(&'static str, ArcRwSignal<S>) as IntoStyle>::State, )

Source§

fn into_cloneable( self, ) -> <(&'static str, ArcRwSignal<S>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, ArcRwSignal<S>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve( self, ) -> <(&'static str, ArcRwSignal<S>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, ArcRwSignal<S>) as IntoStyle>::State)

Source§

impl<S> IntoStyle for (&'static str, ArcSignal<S>)
where ArcSignal<S>: Get<Value = S>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, ArcSignal<S>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, ArcSignal<S>)

Source§

type CloneableOwned = (&'static str, ArcSignal<S>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, ArcSignal<S>) as IntoStyle>::State

Source§

fn build( self, el: &Element, ) -> <(&'static str, ArcSignal<S>) as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <(&'static str, ArcSignal<S>) as IntoStyle>::State)

Source§

fn into_cloneable( self, ) -> <(&'static str, ArcSignal<S>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, ArcSignal<S>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve( self, ) -> <(&'static str, ArcSignal<S>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, ArcSignal<S>) as IntoStyle>::State)

Source§

impl<S, St> IntoStyle for (&'static str, MaybeSignal<S, St>)
where MaybeSignal<S, St>: Get<Value = S>, St: Send + Sync + 'static + Storage<S> + Storage<Option<S>>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, MaybeSignal<S, St>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, MaybeSignal<S, St>)

Source§

type CloneableOwned = (&'static str, MaybeSignal<S, St>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, MaybeSignal<S, St>) as IntoStyle>::State

Source§

fn build( self, el: &Element, ) -> <(&'static str, MaybeSignal<S, St>) as IntoStyle>::State

Source§

fn rebuild( self, state: &mut <(&'static str, MaybeSignal<S, St>) as IntoStyle>::State, )

Source§

fn into_cloneable( self, ) -> <(&'static str, MaybeSignal<S, St>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, MaybeSignal<S, St>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve( self, ) -> <(&'static str, MaybeSignal<S, St>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, MaybeSignal<S, St>) as IntoStyle>::State)

Source§

impl<S, St> IntoStyle for (&'static str, Memo<S, St>)
where Memo<S, St>: Get<Value = S>, St: Send + Sync + 'static + Storage<S> + Storage<Option<S>>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, Memo<S, St>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, Memo<S, St>)

Source§

type CloneableOwned = (&'static str, Memo<S, St>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, Memo<S, St>) as IntoStyle>::State

Source§

fn build( self, el: &Element, ) -> <(&'static str, Memo<S, St>) as IntoStyle>::State

Source§

fn rebuild(self, state: &mut <(&'static str, Memo<S, St>) as IntoStyle>::State)

Source§

fn into_cloneable(self) -> <(&'static str, Memo<S, St>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, Memo<S, St>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve( self, ) -> <(&'static str, Memo<S, St>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, Memo<S, St>) as IntoStyle>::State)

Source§

impl<S, St> IntoStyle for (&'static str, ReadSignal<S, St>)
where ReadSignal<S, St>: Get<Value = S>, St: Send + Sync + 'static + Storage<S> + Storage<Option<S>>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, ReadSignal<S, St>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, ReadSignal<S, St>)

Source§

type CloneableOwned = (&'static str, ReadSignal<S, St>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, ReadSignal<S, St>) as IntoStyle>::State

Source§

fn build( self, el: &Element, ) -> <(&'static str, ReadSignal<S, St>) as IntoStyle>::State

Source§

fn rebuild( self, state: &mut <(&'static str, ReadSignal<S, St>) as IntoStyle>::State, )

Source§

fn into_cloneable( self, ) -> <(&'static str, ReadSignal<S, St>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, ReadSignal<S, St>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve( self, ) -> <(&'static str, ReadSignal<S, St>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, ReadSignal<S, St>) as IntoStyle>::State)

Source§

impl<S, St> IntoStyle for (&'static str, RwSignal<S, St>)
where RwSignal<S, St>: Get<Value = S>, St: Send + Sync + 'static + Storage<S> + Storage<Option<S>>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, RwSignal<S, St>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, RwSignal<S, St>)

Source§

type CloneableOwned = (&'static str, RwSignal<S, St>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, RwSignal<S, St>) as IntoStyle>::State

Source§

fn build( self, el: &Element, ) -> <(&'static str, RwSignal<S, St>) as IntoStyle>::State

Source§

fn rebuild( self, state: &mut <(&'static str, RwSignal<S, St>) as IntoStyle>::State, )

Source§

fn into_cloneable( self, ) -> <(&'static str, RwSignal<S, St>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, RwSignal<S, St>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve( self, ) -> <(&'static str, RwSignal<S, St>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, RwSignal<S, St>) as IntoStyle>::State)

Source§

impl<S, St> IntoStyle for (&'static str, Signal<S, St>)
where Signal<S, St>: Get<Value = S>, St: Send + Sync + 'static + Storage<S> + Storage<Option<S>>, S: Into<Cow<'static, str>> + Send + Sync + Clone + 'static,

Source§

type AsyncOutput = (&'static str, Signal<S, St>)

Source§

type State = RenderEffectWithCssStyleName<(CssStyleDeclaration, Cow<'static, str>)>

Source§

type Cloneable = (&'static str, Signal<S, St>)

Source§

type CloneableOwned = (&'static str, Signal<S, St>)

Source§

fn to_html(self, style: &mut String)

Source§

fn hydrate<const FROM_SERVER: bool>( self, el: &Element, ) -> <(&'static str, Signal<S, St>) as IntoStyle>::State

Source§

fn build( self, el: &Element, ) -> <(&'static str, Signal<S, St>) as IntoStyle>::State

Source§

fn rebuild( self, state: &mut <(&'static str, Signal<S, St>) as IntoStyle>::State, )

Source§

fn into_cloneable( self, ) -> <(&'static str, Signal<S, St>) as IntoStyle>::Cloneable

Source§

fn into_cloneable_owned( self, ) -> <(&'static str, Signal<S, St>) as IntoStyle>::CloneableOwned

Source§

fn dry_resolve(&mut self)

Source§

async fn resolve( self, ) -> <(&'static str, Signal<S, St>) as IntoStyle>::AsyncOutput

Source§

fn reset(state: &mut <(&'static str, Signal<S, St>) as IntoStyle>::State)

Source§

impl<T> IntoStyle for Option<T>
where T: IntoStyle,

Implementors§

Source§

impl IntoStyle for Oco<'static, str>

Source§

type AsyncOutput = Oco<'static, str>

Source§

type State = (Element, Oco<'static, str>)

Source§

type Cloneable = Oco<'static, str>

Source§

type CloneableOwned = Oco<'static, str>

Source§

impl<C> IntoStyle for ArcMemo<C>
where ArcMemo<C>: Get<Value = C>, C: IntoStyle + Clone + Send + Sync + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<C> IntoStyle for ArcReadSignal<C>
where ArcReadSignal<C>: Get<Value = C>, C: IntoStyle + Clone + Send + Sync + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<C> IntoStyle for ArcRwSignal<C>
where ArcRwSignal<C>: Get<Value = C>, C: IntoStyle + Clone + Send + Sync + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<C> IntoStyle for ArcSignal<C>
where ArcSignal<C>: Get<Value = C>, C: IntoStyle + Clone + Send + Sync + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<C, S> IntoStyle for MaybeSignal<C, S>
where MaybeSignal<C, S>: Get<Value = C>, S: Storage<C> + Storage<Option<C>> + Send + Sync + 'static, C: IntoStyle + Send + Sync + Clone + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<C, S> IntoStyle for Memo<C, S>
where Memo<C, S>: Get<Value = C>, S: Storage<C> + Storage<Option<C>> + Send + Sync + 'static, C: IntoStyle + Send + Sync + Clone + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<C, S> IntoStyle for ReadSignal<C, S>
where ReadSignal<C, S>: Get<Value = C>, S: Storage<C> + Storage<Option<C>> + Send + Sync + 'static, C: IntoStyle + Send + Sync + Clone + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<C, S> IntoStyle for RwSignal<C, S>
where RwSignal<C, S>: Get<Value = C>, S: Storage<C> + Storage<Option<C>> + Send + Sync + 'static, C: IntoStyle + Send + Sync + Clone + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<C, S> IntoStyle for Signal<C, S>
where Signal<C, S>: Get<Value = C>, S: Storage<C> + Storage<Option<C>> + Send + Sync + 'static, C: IntoStyle + Send + Sync + Clone + 'static, <C as IntoStyle>::State: 'static,

Source§

impl<F, C> IntoStyle for F
where F: ReactiveFunction<Output = C>, C: IntoStyle + 'static, <C as IntoStyle>::State: 'static,