fn ty_is_self_or_named(ty: &Type, type_ident: &Ident) -> bool
Recursively checks whether ty is Self, &Self, &mut Self, Box<Self>, the named type, or Result<(Self | NamedType), _>.
ty
Self
&Self
&mut Self
Box<Self>
Result<(Self | NamedType), _>