Trait ScriptExtension

Source
pub trait ScriptExtension: HasAttributes + Sized {
    // Provided methods
    fn crossorigin(self, value: impl IntoAttributeValue) -> Self { ... }
    fn defer(self, value: impl IntoAttributeValue) -> Self { ... }
    fn integrity(self, value: impl IntoAttributeValue) -> Self { ... }
    fn nomodule(self, value: impl IntoAttributeValue) -> Self { ... }
    fn nonce(self, value: impl IntoAttributeValue) -> Self { ... }
    fn src(self, value: impl IntoAttributeValue) -> Self { ... }
    fn text(self, value: impl IntoAttributeValue) -> Self { ... }
    fn fetchpriority(self, value: impl IntoAttributeValue) -> Self { ... }
    fn referrerpolicy(self, value: impl IntoAttributeValue) -> Self { ... }
    fn async(self, value: impl IntoAttributeValue) -> Self { ... }
    fn type(self, value: impl IntoAttributeValue) -> Self { ... }
    fn script(self, value: impl IntoAttributeValue) -> Self { ... }
}

Provided Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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