Skip to main content

CustomAttribute

Trait CustomAttribute 

Source
pub trait CustomAttribute<K, V>: Sized + AddAnyAttr{
    // Provided method
    fn attr(self, key: K, value: V) -> Self::Output<CustomAttr<K, V>> { ... }
}
Expand description

Adds a custom attribute to an element.

Provided Methods§

Source

fn attr(self, key: K, value: V) -> Self::Output<CustomAttr<K, V>>

Adds an HTML attribute by key and value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, K, V> CustomAttribute<K, V> for T