(&self, opt: WriteOpt)
| 14 | |
| 15 | impl WriteSource for pr::Ty { |
| 16 | fn write(&self, opt: WriteOpt) -> Option<String> { |
| 17 | if let Some(name) = &self.name { |
| 18 | Some(name.clone()) |
| 19 | } else { |
| 20 | self.kind.write(opt) |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | impl WriteSource for Option<&pr::Ty> { |
no test coverage detected