Expand description
Code generation building blocks.
This module provides the core primitives for generating code:
CodeBuilder- Fluent API for building indented codeCodeFragment- Intermediate representation for code piecesRenderable- Trait for types that can be converted to code fragmentsFileBuilder- Composition of imports and codeIndent- Indentation configuration
Structs§
- Code
Builder - Fluent API for building code with proper indentation.
- File
Builder - Composable file builder that combines import collection with code generation.
Enums§
- Code
Fragment - Represents a fragment of generated code.
- Indent
- Indentation style for generated code.
Traits§
- Renderable
- Trait for types that can be rendered to code fragments.