Trait HtmlLinkAttributes

Source
pub trait HtmlLinkAttributes: SetAttribute + Sized {
    // Provided methods
    fn as(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn crossorigin(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn href(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn hreflang(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn media(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn rel(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn sizes(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn title(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn type(self, value: impl Into<StringAttribute>) -> Self { ... }
    fn integrity(self, value: impl Into<StringAttribute>) -> Self { ... }
}
Expand description

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

Provided Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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