Module rustc_ty_utils::structural_match
source · Functions
- This method returns true if and only if
adt_ty
itself has been marked as eligible for structural-match: namely, if it implements bothStructuralPartialEq
andStructuralEq
(which are respectively injected by#[derive(PartialEq)]
and#[derive(Eq)]
).