Trait HtmlImgAttributes

Source
pub trait HtmlImgAttributes: SetAttribute + Sized {
    // Provided methods
    fn alt(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn crossorigin(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn decoding(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn height(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn ismap(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
    fn loading(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn referrerpolicy(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn sizes(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn src(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn srcset(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn usemap(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn width(self, value: impl Into<StringAttribute>) -> Self { ... }
}
Expand description

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

Provided Methods§

Source

fn alt(self, value: impl Into<StringAttribute>) -> Self

Source

fn crossorigin(self, value: impl Into<StringAttribute>) -> Self

Source

fn decoding(self, value: impl Into<StringAttribute>) -> Self

Source

fn height(self, value: impl Into<StringAttribute>) -> Self

Source

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

Source

fn loading(self, value: impl Into<StringAttribute>) -> Self

Source

fn referrerpolicy(self, value: impl Into<StringAttribute>) -> Self

Source

fn sizes(self, value: impl Into<StringAttribute>) -> Self

Source

fn src(self, value: impl Into<StringAttribute>) -> Self

Source

fn srcset(self, value: impl Into<StringAttribute>) -> Self

Source

fn usemap(self, value: impl Into<StringAttribute>) -> Self

Source

fn width(self, value: impl Into<StringAttribute>) -> 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§