Trait DocCommentsOwner

Source
pub trait DocCommentsOwner<'a>: AstNode<'a> {
    // Provided methods
    fn doc_comments(self) -> AstChildren<'a, Comment<'a>>  { ... }
    fn doc_comment_text(self) -> String { ... }
}

Provided Methods§

Source

fn doc_comments(self) -> AstChildren<'a, Comment<'a>>

Source

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.

Implementors§

Source§

impl<'a> DocCommentsOwner<'a> for FnDef<'a>