Skip to main content

is_self_ty

Function is_self_ty 

Source
fn is_self_ty<'tcx>(
    tcx: TyCtxt<'tcx>,
    assoc_item: &AssocItem,
    ty: Ty<'tcx>,
) -> bool
Expand description

Returns true when ty denotes Self: either the generic Self param (ty.is_param(0)) or a type equal to the impl’s self type.