+ pub fn borrow_nested_obligations(&self) -> &[N] {
+ match &self {
+ VtableImpl(i) => &i.nested[..],
+ VtableParam(n) => &n[..],
+ VtableBuiltin(i) => &i.nested[..],
+ VtableAutoImpl(d) => &d.nested[..],
+ VtableClosure(c) => &c.nested[..],
+ VtableGenerator(c) => &c.nested[..],
+ VtableObject(d) => &d.nested[..],
+ VtableFnPointer(d) => &d.nested[..],
+ VtableTraitAlias(d) => &d.nested[..],
+ }
+ }
+