windows_metadata/reader/tables/
impl_map.rs1use super::*;
2
3impl std::fmt::Debug for ImplMap<'_> {
4 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
5 f.debug_tuple("ImplMap").field(&self.import_name()).finish()
6 }
7}
8
9impl ImplMap<'_> {
10 pub fn flags(&self) -> PInvokeAttributes {
11 PInvokeAttributes(self.usize(0).try_into().unwrap())
12 }
13
14 pub fn import_name(&self) -> &str {
15 self.str(2)
16 }
17
18 pub fn import_scope(&self) -> ModuleRef {
19 self.row(3)
20 }
21}