Debug ProcLayouts

This commit is contained in:
Ayaz Hafiz 2023-02-20 18:49:18 -06:00
parent 5a1898b285
commit e5c3376e90
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 41 additions and 2 deletions

View file

@ -1313,6 +1313,14 @@ impl<'a> Niche<'a> {
]),
}
}
pub fn dbg_deep<'r, I: LayoutInterner<'a>>(
&'r self,
interner: &'r I,
) -> crate::layout::intern::dbg::DbgFields<'a, 'r, I> {
let NichePriv::Captures(caps) = &self.0;
interner.dbg_deep_iter(caps)
}
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]