Struct typify_impl::TypeSpace[][src]

pub struct TypeSpace { /* fields omitted */ }
Expand description

A collection of types.

Implementations

Add a collection of types that will be used as references. Regardless of how these types are defined–de novo or built-in–these types will appear in the final output in some form. This method may be called multiple times, but collections of references must be self-contained; in other words, a type in one invocation may not refer to a type in another invocation.

Add a new type and return a type identifier that may be used in function signatures or embedded within other types.

Add a new type with a name hint and return a the components necessary to use the type for various components of a function signature.

Set the name of the path prefix for types defined in this TypeSpace.

Iterate over all types including those defined in this TypeSpace and those referred to by those types.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts the given value to a String. 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.