Crate ast2str_lib

Source

Re-exports§

pub use builder::TreeBuilder;

Modules§

builder
This module defines the data structures and functions used to draw trees.
symbols
The symbols used by [DefaultSymbols].
utils
This module contains a simple wrapper for formatting Display objects as Debug and an extension method that can be called on strings. Mainly useful for testing.

Macros§

create_symbols
A macro for quick-and-dirty creation of Symbols implementations. Accepts either 10 different strings to use as symbols in the order they appear in the trait, or a single value to be used inside all methods.

Structs§

DefaultSymbols
The default set of symbols that produces neatly-drawn trees.
TestSymbols
A set of symbols where every symbol is either whitespace ( ) or an empty string.

Traits§

AstToStr
A trait for printing ASTs in a pretty manner.
Symbols
A trait for supplying symbols to the AST formatting functions.