ImgExtension

Trait ImgExtension 

Source
pub trait ImgExtension: HasAttributes + Sized {
Show 15 methods // Provided methods fn alt(self, value: impl IntoAttributeValue) -> Self { ... } fn crossorigin(self, value: impl IntoAttributeValue) -> Self { ... } fn decoding(self, value: impl IntoAttributeValue) -> Self { ... } fn height(self, value: impl IntoAttributeValue) -> Self { ... } fn ismap(self, value: impl IntoAttributeValue) -> Self { ... } fn loading(self, value: impl IntoAttributeValue) -> Self { ... } fn src(self, value: impl IntoAttributeValue) -> Self { ... } fn srcset(self, value: impl IntoAttributeValue) -> Self { ... } fn usemap(self, value: impl IntoAttributeValue) -> Self { ... } fn width(self, value: impl IntoAttributeValue) -> Self { ... } fn referrerpolicy(self, value: impl IntoAttributeValue) -> Self { ... } fn sizes(self, value: impl IntoAttributeValue) -> Self { ... } fn elementtiming(self, value: impl IntoAttributeValue) -> Self { ... } fn fetchpriority(self, value: impl IntoAttributeValue) -> Self { ... } fn attributionsrc(self, value: impl IntoAttributeValue) -> Self { ... }
}

Provided Methods§

Source

fn alt(self, value: impl IntoAttributeValue) -> Self

Source

fn crossorigin(self, value: impl IntoAttributeValue) -> Self

Source

fn decoding(self, value: impl IntoAttributeValue) -> Self

Source

fn height(self, value: impl IntoAttributeValue) -> Self

Source

fn ismap(self, value: impl IntoAttributeValue) -> Self

Source

fn loading(self, value: impl IntoAttributeValue) -> Self

Source

fn src(self, value: impl IntoAttributeValue) -> Self

Source

fn srcset(self, value: impl IntoAttributeValue) -> Self

Source

fn usemap(self, value: impl IntoAttributeValue) -> Self

Source

fn width(self, value: impl IntoAttributeValue) -> Self

Source

fn referrerpolicy(self, value: impl IntoAttributeValue) -> Self

Source

fn sizes(self, value: impl IntoAttributeValue) -> Self

Source

fn elementtiming(self, value: impl IntoAttributeValue) -> Self

Source

fn fetchpriority(self, value: impl IntoAttributeValue) -> Self

Source

fn attributionsrc(self, value: impl IntoAttributeValue) -> 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§