Crate wdl_format

Source
Expand description

Formatting facilities for WDL.

Re-exports§

pub use config::Config;

Modules§

config
Formatting configuration.
element
Elements used during formatting.
v1
Formatting of WDL v1.x elements.

Macros§

exactly_one
Returns exactly one entity from an enumerable list of entities (usually a Vec).

Structs§

Formatter
A formatter.
Postprocessor
A postprocessor of tokens.
TokenStream
A stream of tokens. Tokens in this case are either PreTokens or PostTokens. Note that, unless you are working on formatting specifically, you should never need to work with PostTokens.

Enums§

Comment
The kind of comment.
PostToken
A postprocessed token.
PreToken
A token that can be written by elements.
Trivia
Trivia.
TriviaBlankLineSpacingPolicy
The policy for Trivia::BlankLine line spacing.

Constants§

NEWLINE
Newline constant used for formatting on non-windows platforms.
SPACE
A space.
TAB
A tab.

Traits§

Token
Tokens that are streamable.
Writable
An element that can be written to a token stream.