pub enum Attribute<T> {
Present(T),
Empty,
Missing,
}
Available on crate feature
typed
only.Expand description
A typed attribute.
Variants§
Present(T)
The attribute is present and has a value.
<div id="test"></div>
Empty
The attribute is present but has no value.
<div hidden></div>
Missing
The attribute is not present.
Implementations§
Trait Implementations§
impl<T> Copy for Attribute<T>where
T: Copy,
impl<T> Eq for Attribute<T>where
T: Eq,
impl<T> StructuralPartialEq for Attribute<T>
Auto Trait Implementations§
impl<T> Freeze for Attribute<T>where
T: Freeze,
impl<T> RefUnwindSafe for Attribute<T>where
T: RefUnwindSafe,
impl<T> Send for Attribute<T>where
T: Send,
impl<T> Sync for Attribute<T>where
T: Sync,
impl<T> Unpin for Attribute<T>where
T: Unpin,
impl<T> UnwindSafe for Attribute<T>where
T: 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