Expand description
Re-export core types for advanced usage. Internal Representation (IR) for typewriter.
The IR is the language-agnostic bridge between Rust’s AST and each language emitter.
Every emitter only needs to know about these types — it never touches syn or Rust AST directly.
Structs§
- EnumDef
- A complete enum definition in the IR.
- Field
Def - A single field inside a struct.
- Struct
Def - A complete struct definition in the IR.
- Variant
Def - A single enum variant.
Enums§
- Enum
Repr - How the enum is represented in JSON (mirrors serde’s options).
- Language
- The target languages that typewriter can generate code for.
- Primitive
Type - Rust primitive types that map to language-specific equivalents.
- TypeDef
- Top-level item — either a struct or an enum.
- Type
Kind - Every Rust type is mapped to one of these variants.
- Variant
Kind - The kind of data an enum variant carries.