pub struct Attribute<'a> {
pub name: Cow<'a, str>,
pub value: Cow<'a, str>,
pub raw_value: Option<&'a str>,
}Expand description
An attribute. The first occurrence of each normalized name is retained.
Fields§
§name: Cow<'a, str>The ASCII-lowercase attribute name.
value: Cow<'a, str>The decoded value, empty when no value was provided.
raw_value: Option<&'a str>The source value without quotes, or None when = was absent.
Implementations§
Trait Implementations§
impl<'a> Eq for Attribute<'a>
impl<'a> StructuralPartialEq for Attribute<'a>
Auto Trait Implementations§
impl<'a> Freeze for Attribute<'a>
impl<'a> RefUnwindSafe for Attribute<'a>
impl<'a> Send for Attribute<'a>
impl<'a> Sync for Attribute<'a>
impl<'a> Unpin for Attribute<'a>
impl<'a> UnsafeUnpin for Attribute<'a>
impl<'a> UnwindSafe for Attribute<'a>
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