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

Construct a new TypeRegistry

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.