Documentation
¶
Overview ¶
Package generator is Rust generator from AST
Index ¶
- type Generator
- func (g *Generator) AddTypes(typeMap map[reflect.Type]rstypes.Type)
- func (g *Generator) Generate() string
- func (g *Generator) GenerateTypeSimple(t rstypes.Type, fieldName string) string
- func (g *Generator) GenerateTypeSimpleWithContext(t rstypes.Type, fieldName string, typeStack []rstypes.Type) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
BasePackage string
CustomGenerator func(t rstypes.Type) (generated string, union bool)
// contains filtered or unexported fields
}
Generator is a generator for Rust types
func (*Generator) GenerateTypeSimple ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.