Struct tl::Attributes [−][src]
pub struct Attributes<'a> {
pub raw: InlineHashMap<Bytes<'a>, Option<Bytes<'a>>, INLINED_ATTRIBUTES>,
pub id: Option<Bytes<'a>>,
pub class: Option<Bytes<'a>>,
}Expand description
Stores all attributes of an HTML tag, as well as additional metadata such as id and class
Fields
raw: InlineHashMap<Bytes<'a>, Option<Bytes<'a>>, INLINED_ATTRIBUTES>Raw attributes (maps attribute key to attribute value)
id: Option<Bytes<'a>>The ID of this HTML element, if present
class: Option<Bytes<'a>>A list of class names of this HTML element, if present
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Attributes<'a>
impl<'a> Send for Attributes<'a>
impl<'a> Sync for Attributes<'a>
impl<'a> Unpin for Attributes<'a>
impl<'a> UnwindSafe for Attributes<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more