1use super::Entry;
4
5impl std::fmt::Debug for Entry<'_, '_> {
6    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7        let mut ds = f.debug_struct("Entry");
9        if let Some(name) = self.name() {
10            ds.field("name", &name.to_ref());
11        }
12        ds.field("kind", &self.kind());
13        if let Some(ty) = self.ty() {
14            ds.field("type", ty);
15        }
16        if let Some(meta) = self.meta() {
17            ds.field("meta", &meta);
18        }
19        if let Some(body) = self.bodies() {
20            ds.field("body", body);
21        }
22        if let Some(children) = self.children() {
23            ds.field("children", children);
24        }
25        if let Some(imports) = self.imports() {
26            ds.field("imports", imports);
27        }
28        ds.field("implements", &self.impl_target()).finish()
32    }
33}