Trait ra_syntax::ast::DocCommentsOwner
source · pub trait DocCommentsOwner<'a>: AstNode<'a> {
fn doc_comments(self) -> AstChildren<'a, Comment<'a>> ⓘ { ... }
fn doc_comment_text(self) -> String { ... }
}
Provided Methods
fn doc_comments(self) -> AstChildren<'a, Comment<'a>> ⓘ
sourcefn doc_comment_text(self) -> String
fn doc_comment_text(self) -> String
Returns the textual content of a doc comment block as a single string.
That is, strips leading ///
and joins lines