Module code

Source
Expand description

The code module contains types and helper methods to format and manage the code generated by this crate.

Structs§

IdentPath
Represents an identifier path.
InvalidIdentPath
Error that is raised by IdentPath if parsing the value from string failed.
Module
Manages the code that is generated for a specific module.
ModulePath
Represents a path of a module.

Enums§

SubModules
Defines how the sub modules of the Module will be generated when calling Module::to_code().

Functions§

format_field_ident
Formats the passed name as field name.
format_module_ident
Formats the passed name as module name.
format_type_ident
Formats the passed name as type name.
format_variant_ident
Formats the passed name as variant name.