pub struct AttrMap(pub Vec<(Cow<'static, str>, Cow<'static, str>)>);Expand description
An ordered list of HTML attribute key-value pairs.
Keys and values are stored as Cow<'static, str> to avoid allocations when
attribute names and values are known at compile time (string literals).
Duplicate keys are allowed (the last one wins in most browsers, but we preserve insertion order for deterministic output and snapshot tests).
Tuple Fields§
§0: Vec<(Cow<'static, str>, Cow<'static, str>)>Implementations§
Trait Implementations§
Source§impl<K, V> FromIterator<(K, V)> for AttrMap
impl<K, V> FromIterator<(K, V)> for AttrMap
impl Eq for AttrMap
impl StructuralPartialEq for AttrMap
Auto Trait Implementations§
impl Freeze for AttrMap
impl RefUnwindSafe for AttrMap
impl Send for AttrMap
impl Sync for AttrMap
impl Unpin for AttrMap
impl UnsafeUnpin for AttrMap
impl UnwindSafe for AttrMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more