pub struct AttributeNode {
pub name: CompactString,
pub name_loc: SourceLocation,
pub value: Option<TextNode>,
pub loc: SourceLocation,
}Expand description
Attribute node
Fields§
§name: CompactString§name_loc: SourceLocation§value: Option<TextNode>§loc: SourceLocationImplementations§
Source§impl AttributeNode
impl AttributeNode
pub fn new(name: impl Into<CompactString>, loc: SourceLocation) -> AttributeNode
pub fn node_type(&self) -> NodeType
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttributeNode
impl RefUnwindSafe for AttributeNode
impl Send for AttributeNode
impl Sync for AttributeNode
impl Unpin for AttributeNode
impl UnsafeUnpin for AttributeNode
impl UnwindSafe for AttributeNode
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