pub struct Registry {
    pub types: BTreeMap<String, NamedType>,
    pub extensions: BTreeSet<String>,
}

Fields

types: BTreeMap<String, NamedType>extensions: BTreeSet<String>

Implementations

Construct a new registry given a maximum API version and a set of extensions to support.

Iterator over types matched by a filtering function

Resolves a named type

Use the specified generator to generate bindings from this registry and write them to a stream.

Trait Implementations

Formats the value using the given formatter. Read more
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.