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