pub trait SourceExtension: Sized + HasAttributes {
// 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 { ... }
}Available on crate feature
prelude only.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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".