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 directive/annotation name (effects, …).
pub fn args(&self) -> Option<AnnotationArgs>
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 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 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