Given a trait trait_ref
, returns the number of vtable entries
that come from trait_ref
, excluding its supertraits. Used in
computing the vtable base for an upcast trait of a trait object.
Turns option of iterator into an iterator (this is just flatten)
Prepare the segments for a vtable
Given a trait trait_ref
, iterates the vtable entries
that come from trait_ref
, including its supertraits.
Find slot base for trait methods within vtable entries of another trait
Find slot offset for trait vptr within vtable entries of another trait