pub trait DocCommentsOwner<'a>: AstNode<'a> {
// Provided methods
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.