forge_doc::writer::as_doc

Trait AsDoc

Source
pub trait AsDoc {
    // Required method
    fn as_doc(&self) -> AsDocResult;
}
Expand description

A trait for formatting a parse unit as documentation.

Required Methods§

Source

fn as_doc(&self) -> AsDocResult

Formats a parse tree item into a doc string.

Implementations on Foreign Types§

Source§

impl AsDoc for String

Source§

impl AsDoc for Base

Implementors§