pub enum AttrValue<'a> {
Quoted(&'a str),
Unquoted(&'a str),
Empty,
}Expand description
The value side of an attribute.
Variants§
Quoted(&'a str)
name="value" or name='value' — slice excludes the quotes.
Unquoted(&'a str)
name=value with no quotes.
Empty
A boolean attribute with no value, e.g. disabled.
Implementations§
Trait Implementations§
impl<'a> Copy for AttrValue<'a>
impl<'a> Eq for AttrValue<'a>
Source§impl<'a> PartialEq for AttrValue<'a>
impl<'a> PartialEq for AttrValue<'a>
impl<'a> StructuralPartialEq for AttrValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for AttrValue<'a>
impl<'a> RefUnwindSafe for AttrValue<'a>
impl<'a> Send for AttrValue<'a>
impl<'a> Sync for AttrValue<'a>
impl<'a> Unpin for AttrValue<'a>
impl<'a> UnsafeUnpin for AttrValue<'a>
impl<'a> UnwindSafe for AttrValue<'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