windows_metadata/reader/tables/interface_impl.rs
1use super::*;
2
3impl std::fmt::Debug for InterfaceImpl<'_> {
4 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5 f.debug_tuple("InterfaceImpl").field(&self.0).finish()
6 }
7}
8
9impl InterfaceImpl<'_> {
10 pub fn class(&self) -> TypeDef {
11 self.row(0)
12 }
13
14 pub fn interface(&self, generics: &[Type]) -> Type {
15 self.decode::<TypeDefOrRef>(1).ty(generics)
16 }
17}