Skip to main contentModule meth
Source use rustc_middle::ty; ๐ use rustc_middle::ty::GenericArgKind; ๐ use rustc_middle::ty::Ty; ๐ use rustc_middle::ty::TyCtxt; ๐ use rustc_session::config::Lto; ๐ use rustc_span::bug; ๐ use rustc_symbol_mangling::typeid_for_trait_ref; ๐ use rustc_target::callconv::FnAbi; ๐ use tracing::debug; ๐ use tracing::instrument; ๐ use tracing::instrument; ๐ use crate::traits::*; ๐
- VirtualIndex ๐
- dyn_trait_in_self ๐
- This takes a valid
self receiver type and extracts the principal trait
ref of the type. Return None if there is no principal trait. - get_vtable ๐
- Creates a dynamic vtable for the given type and vtable origin.
This is used only for objects.