windows-metadata 0.60.0

Low-level metadata library for ECMA-335
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

impl std::fmt::Debug for InterfaceImpl<'_> {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        f.debug_tuple("InterfaceImpl").field(&self.0).finish()
    }
}

impl<'a> InterfaceImpl<'a> {
    pub fn class(&self) -> TypeDef<'a> {
        self.row(0)
    }

    pub fn interface(&self, generics: &[Type]) -> Type {
        self.decode::<TypeDefOrRef>(1).ty(generics)
    }
}