Struct typify_impl::TypeSpace [−][src]
pub struct TypeSpace { /* fields omitted */ }
Expand description
A collection of types.
Implementations
pub fn add_ref_types<I, S>(&mut self, type_defs: I) -> Result<()> where
I: IntoIterator<Item = (S, Schema)>,
S: AsRef<str>,
pub fn add_ref_types<I, S>(&mut self, type_defs: I) -> Result<()> where
I: IntoIterator<Item = (S, Schema)>,
S: AsRef<str>,
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.