Struct webgl_generator::Registry
[−]
[src]
pub struct Registry { pub types: BTreeMap<String, NamedType>, pub extensions: BTreeSet<String>, }
Fields
types: BTreeMap<String, NamedType>
extensions: BTreeSet<String>
Methods
impl Registry
[src]
pub fn new(api: Api, exts: Exts) -> Registry
[src]
Construct a new registry given a maximum API version and a set of extensions to support.
ⓘImportant traits for TypeIter<'a, T, F>pub fn iter_types<'a, T, F: FnMut(&'a NamedType) -> Option<&'a T>>(
&'a self,
f: F
) -> TypeIter<'a, T, F>
[src]
ⓘImportant traits for TypeIter<'a, T, F>
&'a self,
f: F
) -> TypeIter<'a, T, F>
Iterator over types matched by a filtering function
pub fn resolve_type(&self, name: &str) -> &NamedType
[src]
Resolves a named type
pub fn write_bindings<W, G>(&self, generator: G, output: &mut W) -> Result<()> where
G: Generator,
W: Write,
[src]
G: Generator,
W: Write,
Use the specified generator to generate bindings from this registry and write them to a stream.
Trait Implementations
impl Debug for Registry
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more