pub trait CustomAttribute<K, V>: Sized + AddAnyAttrwhere
K: CustomAttributeKey,
V: AttributeValue,{
// 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§
Sourcefn attr(self, key: K, value: V) -> Self::Output<CustomAttr<K, V>>
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".