Struct go_away::TypeRegistry [−][src]
pub struct TypeRegistry { /* fields omitted */ }
Expand description
A registry of type details.
Can be populated by passing in to TypeMetadata::metadata
and then used
to output types in other languages.
Implementations
Registers an Alias
in the TypeRegistry
Users should use crate::TypeAlias::register_alias
rather than calling this directly.
Register a Struct
Users should use crate::TypeMetadata::metadata
rather than calling this directly.
Register a NewType
Users should use crate::TypeMetadata::metadata
rather than calling this directly.
Register an Enum
Users should use crate::TypeMetadata::metadata
rather than calling this directly.
Register a Uninon
Users should use crate::TypeMetadata::metadata
rather than calling this directly.
Trait Implementations
Returns the “default value” for a type. Read more