Struct windows_gen::TypeTree [−][src]
pub struct TypeTree { pub namespace: &'static str, pub types: Vec<ElementType>, pub namespaces: BTreeMap<&'static str, TypeTree>, }
Fields
namespace: &'static str
types: Vec<ElementType>
namespaces: BTreeMap<&'static str, TypeTree>
Implementations
impl TypeTree
[src]
impl TypeTree
[src]pub fn from_namespace(namespace: &'static str) -> Self
[src]
pub fn from_imports(
reader: &'static TypeReader,
imports: &BTreeMap<&'static str, ImportLimit>
) -> Self
[src]
reader: &'static TypeReader,
imports: &BTreeMap<&'static str, ImportLimit>
) -> Self
pub fn include_method(&self, signature: &MethodSignature) -> bool
[src]
pub fn includes(&self, kind: &ElementType) -> bool
[src]
pub fn gen<'a>(
&'a self,
root: &'a Self
) -> impl Iterator<Item = TokenStream> + 'a
[src]
&'a self,
root: &'a Self
) -> impl Iterator<Item = TokenStream> + 'a