pub struct AnnotationLine { /* private fields */ }Implementations§
Source§impl AnnotationLine
impl AnnotationLine
Sourcepub fn name_token(&self) -> Option<SyntaxToken>
pub fn name_token(&self) -> Option<SyntaxToken>
The annotation’s name token — the IDENT after @[ (e.g. effects
in @[effects(pure)]).
Sourcepub fn arg_text(&self) -> Option<String>
pub fn arg_text(&self) -> Option<String>
The raw text between the annotation’s balanced ( … ) argument
parens, if present — None for a bare @[name]. Mirrors the
directive channel’s raw-string argument contract
(brink-ir’s ParsedDirective::arg): the argument mini-grammar is
parsed downstream, not here.
Trait Implementations§
Source§impl AstNode for AnnotationLine
impl AstNode for AnnotationLine
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true if a node with the given kind can be cast to Self.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 AnnotationLine
impl Clone for AnnotationLine
Source§fn clone(&self) -> AnnotationLine
fn clone(&self) -> AnnotationLine
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 AnnotationLine
impl Debug for AnnotationLine
Source§impl Display for AnnotationLine
impl Display for AnnotationLine
impl Eq for AnnotationLine
Source§impl Hash for AnnotationLine
impl Hash for AnnotationLine
Source§impl PartialEq for AnnotationLine
impl PartialEq for AnnotationLine
impl StructuralPartialEq for AnnotationLine
Auto Trait Implementations§
impl !RefUnwindSafe for AnnotationLine
impl !Send for AnnotationLine
impl !Sync for AnnotationLine
impl !UnwindSafe for AnnotationLine
impl Freeze for AnnotationLine
impl Unpin for AnnotationLine
impl UnsafeUnpin for AnnotationLine
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