Trait Show

Source
pub trait Show {
    // Required methods
    fn show(&self) -> DocTree;
    fn show_prettier(&self, map: &IDMap) -> DocTree;
}
Expand description

Display a node as a tree component in multiple forms.

Required Methods§

Source

fn show(&self) -> DocTree

A plain form usually with basic info.

Source

fn show_prettier(&self, map: &IDMap) -> DocTree

A fancier form with more item tags/icons before subnodes and other improvements.

Implementations on Foreign Types§

Source§

impl Show for str

Source§

fn show_prettier(&self, _: &IDMap) -> DocTree

Just as <str as Show>::show does.

Source§

fn show(&self) -> DocTree

Implementors§

Source§

impl Show for DConstant

Source§

impl Show for DEnum

Source§

impl Show for DFunction

Source§

impl Show for DImpl

Source§

impl Show for DMacroAttr

Source§

impl Show for DMacroDecl

Source§

impl Show for DMacroDerv

Source§

impl Show for DMacroFunc

Source§

impl Show for DModule

To a recursive tree displayed with ids as nodes.

Source§

impl Show for DStatic

Source§

impl Show for DStruct

Source§

impl Show for DTrait

Source§

impl Show for DTypeAlias

Source§

impl Show for DUnion