pub struct AttrValue { /* private fields */ }Expand description
A AttrValue node (family.ungram rule AttrValue).
Implementations§
Source§impl AttrValue
impl AttrValue
pub fn literal(&self) -> Option<Literal>
pub fn values(&self) -> AstChildren<AttrValue> ⓘ
pub fn l_paren_token(&self) -> Option<SyntaxToken>
pub fn comma_token(&self) -> Option<SyntaxToken>
pub fn r_paren_token(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for AttrValue
impl AstNode for AttrValue
Source§fn cast(syntax: SyntaxNode) -> Option<Self>
fn cast(syntax: SyntaxNode) -> Option<Self>
Wraps
syntax if its kind matches this type; None otherwise.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying untyped node.
impl Eq for AttrValue
impl StructuralPartialEq for AttrValue
Auto Trait Implementations§
impl !RefUnwindSafe for AttrValue
impl !Send for AttrValue
impl !Sync for AttrValue
impl !UnwindSafe for AttrValue
impl Freeze for AttrValue
impl Unpin for AttrValue
impl UnsafeUnpin for AttrValue
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