Function rustc::middle::trans::meth::trans_trait_cast[src]

pub fn trans_trait_cast<'a>(bcx: &'a Block<'a>, datum: Datum<Expr>, id: NodeId, dest: Dest) -> &'a Block<'a>

Generates the code to convert from a pointer (Box<T>, &T, etc) into an object (Box<Trait>, &Trait, etc). This means creating a pair where the first word is the vtable and the second word is the pointer.