Skip to main content

SourceExtension

Trait SourceExtension 

Source
pub trait SourceExtension: HasAttributes + Sized {
    // Provided methods
    fn src(self, value: impl IntoAttributeValue) -> Self { ... }
    fn type(self, value: impl IntoAttributeValue) -> Self { ... }
    fn srcset(self, value: impl IntoAttributeValue) -> Self { ... }
    fn media(self, value: impl IntoAttributeValue) -> Self { ... }
    fn sizes(self, value: impl IntoAttributeValue) -> Self { ... }
    fn width(self, value: impl IntoAttributeValue) -> Self { ... }
    fn height(self, value: impl IntoAttributeValue) -> Self { ... }
}

Provided Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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