rustc_trait_selection::traits

Module vtable

Source

Enums§

VtblSegment

Functions§

dump_vtable_entries πŸ”’
first_method_vtable_slot πŸ”’
has_own_existential_vtable_entries πŸ”’
maybe_iter πŸ”’
Turns option of iterator into an iterator (this is just flatten)
own_existential_vtable_entries πŸ”’
own_existential_vtable_entries_iter πŸ”’
prepare_vtable_segments
Prepare the segments for a vtable
prepare_vtable_segments_inner πŸ”’
Helper for prepare_vtable_segments that returns ControlFlow, such that we can use ? in the body.
provide πŸ”’
supertrait_vtable_slot πŸ”’
Given a dyn Subtrait and dyn Supertrait trait object, find the slot of the trait vptr in the subtrait’s vtable.
trait_refs_are_compatible πŸ”’
vtable_entries πŸ”’
Given a trait trait_ref, iterates the vtable entries that come from trait_ref, including its supertraits.