sycamore::prelude

Trait HtmlStyleAttributes

pub trait HtmlStyleAttributes: Sized + SetAttribute {
    // Provided methods
    fn media(
        self,
        value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
    ) -> Self { ... }
    fn nonce(
        self,
        value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
    ) -> Self { ... }
    fn title(
        self,
        value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
    ) -> Self { ... }
    fn type(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
}
Expand description

Trait that provides attributes for the <style> HTML element.

Provided Methods§

fn media(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self

fn nonce(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self

fn title(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self

fn type(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self

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.

Implementors§