pub struct Attribute<'r, 'a> {
pub name: Name<'r, 'a>,
pub value: &'r Cow<'a, str>,
pub raw: &'a str,
pub range: Range<usize>,
}Expand description
An attribute (namespace declarations are not attributes).
Fields§
§name: Name<'r, 'a>Its name.
value: &'r Cow<'a, str>The normalised value (references replaced, whitespace characters written as spaces): a slice of the text unless that changed it.
raw: &'a strThe value as written, between the quotes.
range: Range<usize>The byte range of the attribute, from its name to its closing quote.
Trait Implementations§
impl<'r, 'a> Eq for Attribute<'r, 'a>
impl<'r, 'a> StructuralPartialEq for Attribute<'r, 'a>
Auto Trait Implementations§
impl<'r, 'a> Forget for Attribute<'r, 'a>
impl<'r, 'a> Freeze for Attribute<'r, 'a>
impl<'r, 'a> RefUnwindSafe for Attribute<'r, 'a>
impl<'r, 'a> Send for Attribute<'r, 'a>
impl<'r, 'a> Sync for Attribute<'r, 'a>
impl<'r, 'a> Unpin for Attribute<'r, 'a>
impl<'r, 'a> UnsafeUnpin for Attribute<'r, 'a>
impl<'r, 'a> UnwindSafe for Attribute<'r, '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