Skip to main content

Module fmt

Module fmt 

Source
Expand description

Pure logic for zenith fmt.

The public entry point run operates entirely on in-memory source text; the caller is responsible for reading the original file and writing the formatted result back to disk.

Structs§

FmtErr
Error type for fmt.
FmtResult
The outcome of a successful fmt run.

Functions§

render_stdout
Render the fmt result for stdout.
run
Parse src, format it canonically, and return the result.