Crate pretty [] [src]

This crate defines a Wadler-style pretty-printing API.

See Doc and

Structs

BoxAllocator
BoxDoc
DocBuilder

The DocBuilder type allows for convenient appending of documents even for arena allocated documents by storing the arena inline.

RefDoc

Newtype wrapper for &doc::Doc

Enums

Doc

The concrete document type. This type is not meant to be used directly. Instead use the static functions on Doc or the methods on an DocAllocator.

Traits

DocAllocator

The DocAllocator trait abstracts over a type which can allocate (pointers to) Doc.

Type Definitions

Arena

An arena which can be used to allocate Doc values.