Skip to main content

Module meth

Module meth 

Source

Re-exportsยง

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::*; ๐Ÿ”’

Structsยง

VirtualIndex ๐Ÿ”’

Functionsยง

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.