Expand description
Convenience prelude for plugin authors.
ⓘ
use typewriter_plugin::prelude::*;Re-exports§
pub use super::EmitterPlugin;pub use super::PLUGIN_API_VERSION;pub use super::PluginConfig;
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).
- File
Style - Supported file naming styles.
- 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.
Traits§
- Type
Mapper - The core trait that every language emitter must implement.
Functions§
- to_
file_ style - Convert a PascalCase name to the specified file style.