pub struct AnnotationArg { /* private fields */ }Implementations§
Source§impl AnnotationArg
impl AnnotationArg
pub fn name_token(&self) -> Option<SyntaxToken>
Sourcepub fn nested_args(&self) -> Option<AnnotationArgs>
pub fn nested_args(&self) -> Option<AnnotationArgs>
The nested paren-clause (reads(gold, hp) inside effects(…)), if
this argument has one.
Trait Implementations§
Source§impl AstNode for AnnotationArg
impl AstNode for AnnotationArg
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true for a node with a SyntaxKind this type can wrap.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Try to cast a generic
SyntaxNode into this typed wrapper.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Access the underlying
SyntaxNode.Source§impl Clone for AnnotationArg
impl Clone for AnnotationArg
Source§fn clone(&self) -> AnnotationArg
fn clone(&self) -> AnnotationArg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationArg
impl Debug for AnnotationArg
Source§impl Display for AnnotationArg
impl Display for AnnotationArg
impl Eq for AnnotationArg
Source§impl Hash for AnnotationArg
impl Hash for AnnotationArg
Source§impl PartialEq for AnnotationArg
impl PartialEq for AnnotationArg
impl StructuralPartialEq for AnnotationArg
Auto Trait Implementations§
impl !RefUnwindSafe for AnnotationArg
impl !Send for AnnotationArg
impl !Sync for AnnotationArg
impl !UnwindSafe for AnnotationArg
impl Freeze for AnnotationArg
impl Unpin for AnnotationArg
impl UnsafeUnpin for AnnotationArg
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