DynPartialEq

Trait DynPartialEq 

Source
pub trait DynPartialEq: Any + DynPartialEqSealed { }
Expand description

A bound for the LateStruct::EraseTo associated type which asserts that fields must have an implementation of PartialEq against itself. If LateStruct::EraseTo implements this trait, the LateInstance instantiating that structure will implement PartialEq.

This trait is implemented for all types which implement PartialEq<Self>. Unlike PartialEq<Self>, however, it is dyn compatible.

This trait is sealed and no downstream crates can implement it.

Implementors§

Source§

impl<T: 'static + PartialEq> DynPartialEq for T