pub struct CommentLine(/* private fields */);Implementations§
Source§impl CommentLine
impl CommentLine
Sourcepub fn text(&self) -> Option<SyntaxToken>
pub fn text(&self) -> Option<SyntaxToken>
The comment’s text, excluding the newline.
Trait Implementations§
Source§impl AstNode for CommentLine
impl AstNode for CommentLine
type Language = DcfLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl Clone for CommentLine
impl Clone for CommentLine
Source§impl Debug for CommentLine
impl Debug for CommentLine
impl Eq for CommentLine
Source§impl Hash for CommentLine
impl Hash for CommentLine
Source§impl PartialEq for CommentLine
impl PartialEq for CommentLine
impl StructuralPartialEq for CommentLine
Auto Trait Implementations§
impl !RefUnwindSafe for CommentLine
impl !Send for CommentLine
impl !Sync for CommentLine
impl !UnwindSafe for CommentLine
impl Freeze for CommentLine
impl Unpin for CommentLine
impl UnsafeUnpin for CommentLine
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