pub struct Attr {
pub key: Option<AttrData>,
pub value: Option<AttrData>,
pub quote: Option<char>,
pub need_quote: bool,
}
Expand description
Attr attribute data if value is None, it’s a boolean attribute if key is None,it’s a value with quote
Fields
key: Option<AttrData>
value: Option<AttrData>
quote: Option<char>
need_quote: bool
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Attr
impl Send for Attr
impl Sync for Attr
impl Unpin for Attr
impl UnwindSafe for Attr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more