Skip to main content

windows_metadata/reader/tables/
nested_class.rs

1use super::*;
2
3impl std::fmt::Debug for NestedClass<'_> {
4    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
5        f.debug_struct("NestedClass")
6            .field("inner", &self.inner())
7            .field("outer", &self.outer())
8            .finish()
9    }
10}
11
12impl<'a> NestedClass<'a> {
13    pub fn inner(&self) -> TypeDef<'a> {
14        self.row(0)
15    }
16
17    pub fn outer(&self) -> TypeDef<'a> {
18        self.row(1)
19    }
20}