pub struct ComponentLine { /* private fields */ }Expand description
A ComponentLine node (family.ungram rule ComponentLine).
Implementations§
Source§impl ComponentLine
impl ComponentLine
pub fn reference(&self) -> Option<Reference>
pub fn attr_block(&self) -> Option<AttrBlock>
pub fn offers_token(&self) -> Option<SyntaxToken>
pub fn requires_token(&self) -> Option<SyntaxToken>
Source§impl ComponentLine
impl ComponentLine
Sourcepub fn kind(&self) -> Option<ComponentLineKind>
pub fn kind(&self) -> Option<ComponentLineKind>
The line’s keyword. Always Some on a tree the parser built: a
component line starts at its keyword.
Trait Implementations§
Source§impl AstNode for ComponentLine
impl AstNode for ComponentLine
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.
Source§impl Clone for ComponentLine
impl Clone for ComponentLine
Source§impl Debug for ComponentLine
impl Debug for ComponentLine
impl Eq for ComponentLine
Source§impl HasDocComments for ComponentLine
impl HasDocComments for ComponentLine
Source§fn doc_comments(&self) -> Vec<SyntaxToken> ⓘ
fn doc_comments(&self) -> Vec<SyntaxToken> ⓘ
The
DocComment tokens in the trivia run immediately preceding
this node, in source order.Source§impl Hash for ComponentLine
impl Hash for ComponentLine
Source§impl PartialEq for ComponentLine
impl PartialEq for ComponentLine
impl StructuralPartialEq for ComponentLine
Auto Trait Implementations§
impl !RefUnwindSafe for ComponentLine
impl !Send for ComponentLine
impl !Sync for ComponentLine
impl !UnwindSafe for ComponentLine
impl Freeze for ComponentLine
impl Unpin for ComponentLine
impl UnsafeUnpin for ComponentLine
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