pub struct Attribute<K, V> { /* private fields */ }Expand description
A single HTML attribute.
The value decides whether the attribute is present. For example, None
and false values omit the attribute.
Implementations§
Trait Implementations§
Source§impl<K, V> AttributeViewParts for Attribute<K, V>where
K: AttributeKeyViewParts,
V: AttributeValueViewParts,
impl<K, V> AttributeViewParts for Attribute<K, V>where
K: AttributeKeyViewParts,
V: AttributeValueViewParts,
Source§fn into_view_parts(self, cx: &Cx, parts: &mut PartsWriter<'_>)
fn into_view_parts(self, cx: &Cx, parts: &mut PartsWriter<'_>)
Appends zero or more attributes to the view being built.
Auto Trait Implementations§
impl<K, V> Freeze for Attribute<K, V>
impl<K, V> RefUnwindSafe for Attribute<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Attribute<K, V>
impl<K, V> Sync for Attribute<K, V>
impl<K, V> Unpin for Attribute<K, V>
impl<K, V> UnsafeUnpin for Attribute<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for Attribute<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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