I want to compare two trait objects. If they're the same trait implementation, apply PartialEq to the items, otherwise false. Rust won't derive PartialEq for a trait, which would be nice. So
Do you mean that they are the same type? Then you should probably add an Any bound (and an explicit conversion method to &dyn Any in the absence of supertrait coercions), and use <dyn Any>::downcast_ref::<Self>() to check whether other has the same type as self. Playground
Note that this won't work transitively, since a trait object (as a concrete type) itself can still be wrapped into another level of trait objects, so this might not always work as expected.
I know how to do it the hard way. I was hoping for an easy way. Like being able to derive PartialEq for traits and getting all that machinery generated.