Struct webgl_generator::Registry
source · Fields
types: BTreeMap<String, NamedType>
extensions: BTreeSet<String>
Implementations
sourceimpl Registry
impl Registry
sourcepub fn new(api: Api, exts: Exts<'_>) -> Registry
pub fn new(api: Api, exts: Exts<'_>) -> Registry
Construct a new registry given a maximum API version and a set of extensions to support.
sourcepub fn iter_types<'a, T, F: FnMut(&'a NamedType) -> Option<&'a T>>(
&'a self,
f: F
) -> TypeIter<'a, T, F>ⓘNotable traits for TypeIter<'a, T, F>impl<'a, T: 'a, F: FnMut(&'a NamedType) -> Option<&'a T>> Iterator for TypeIter<'a, T, F> type Item = (&'a String, &'a T);
pub fn iter_types<'a, T, F: FnMut(&'a NamedType) -> Option<&'a T>>(
&'a self,
f: F
) -> TypeIter<'a, T, F>ⓘNotable traits for TypeIter<'a, T, F>impl<'a, T: 'a, F: FnMut(&'a NamedType) -> Option<&'a T>> Iterator for TypeIter<'a, T, F> type Item = (&'a String, &'a T);
Iterator over types matched by a filtering function
sourcepub fn resolve_type(&self, name: &str) -> &NamedType
pub fn resolve_type(&self, name: &str) -> &NamedType
Resolves a named type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more