Skip to main content

replace_self

Function replace_self 

Source
pub(crate) fn replace_self(ty: &Type, self_ty: Option<&Type>) -> Type
Expand description

ty with Self replaced by self_ty (an impl method’s wrapper is a free function, where Self names nothing).