rustc_codegen_ssa::meth

Function dyn_trait_in_self

source
fn dyn_trait_in_self(ty: Ty<'_>) -> Option<PolyExistentialTraitRef<'_>>
Expand description

This takes a valid self receiver type and extracts the principal trait ref of the type. Return None if there is no principal trait.