Expand description
Generic document and pretty-printing primitives used by shuck-formatter.
This crate is shell-agnostic. It provides the document tree, formatter traits, and printer implementation that higher-level crates use to build language-specific formatting rules.
Modules§
- prelude
- Re-exports commonly used when implementing
crate::Formatvalues.
Macros§
Structs§
- Document
- Formatting document elements and document construction helpers.
- Format
Error - Core formatter traits, options, and formatted output wrappers.
- Formatted
- Core formatter traits, options, and formatted output wrappers.
- Formatter
- Core formatter traits, options, and formatted output wrappers.
- Print
Error - Printer configuration and rendered output types.
- Printed
- Printer configuration and rendered output types.
- Printer
- Printer configuration and rendered output types.
- Printer
Options - Printer configuration and rendered output types.
- Simple
Format Context - Core formatter traits, options, and formatted output wrappers.
- Simple
Format Options - Core formatter traits, options, and formatted output wrappers.
- VecBuffer
- Output buffers used while constructing format documents.
Enums§
- Format
Element - Formatting document elements and document construction helpers.
- Indent
Style - Printer configuration and rendered output types.
- Line
Ending - Printer configuration and rendered output types.
- Line
Mode - Formatting document elements and document construction helpers.
Traits§
- Buffer
- Output buffers used while constructing format documents.
- Format
- Core formatter traits, options, and formatted output wrappers.
- Format
Context - Core formatter traits, options, and formatted output wrappers.
- Format
Options - Core formatter traits, options, and formatted output wrappers.
Functions§
- best_
fit - Formatting document elements and document construction helpers.
- group
- Formatting document elements and document construction helpers.
- hard_
line_ break - Formatting document elements and document construction helpers.
- indent
- Formatting document elements and document construction helpers.
- soft_
line_ break - Formatting document elements and document construction helpers.
- soft_
line_ break_ or_ space - Formatting document elements and document construction helpers.
- space
- Formatting document elements and document construction helpers.
- text
- Formatting document elements and document construction helpers.
- token
- Formatting document elements and document construction helpers.
- verbatim
- Formatting document elements and document construction helpers.
Type Aliases§
- Format
Result - Core formatter traits, options, and formatted output wrappers.