Function rupta::util::has_self_parameter

source ·
pub fn has_self_parameter(tcx: TyCtxt<'_>, def_id: DefId) -> bool
Expand description

Returns true if the function has an explicit self (either self or &(mut) self) as its first parameter, allowing method calls.