sycamore::prelude

Trait HtmlObjectAttributes

pub trait HtmlObjectAttributes: Sized + SetAttribute {
    // Provided methods
    fn data(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
    fn form(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
    fn height(
        self,
        value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
    ) -> Self { ... }
    fn name(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
    fn type(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
    fn typemustmatch(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
    fn usemap(
        self,
        value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
    ) -> Self { ... }
    fn width(
        self,
        value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
    ) -> Self { ... }
}
Expand description

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

Provided Methods§

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

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

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

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

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

fn typemustmatch(self, value: impl Into<MaybeDyn<bool>>) -> Self

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

fn width(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§