Expand description
Cairo formatter.
This crate is responsible for formatting Cairo code.
Re-exports§
pub use crate::cairo_formatter::CairoFormatter;
pub use crate::cairo_formatter::FormatOutcome;
pub use crate::cairo_formatter::StdinFmt;
Modules§
Structs§
Enums§
- This enum is used to control how multi-element collections (i.e. arrays, tuples) are broken into lines. It provides two options:
SingleBreakPoint
andLineByLine
, allowing flexible configuration based on desired readability or space efficiency.
Constants§
Functions§
- Formats Cairo code given as a string.
- Returns the formatted syntax tree as a string.