Is it possible to avoid "conflicting implementations of trait" somehow? Nightly features?
#[derive( Debug, Eq, Hash, Clone, Copy )]
pub struct Nothing
{
}
//
impl< T > PartialEq< T >
for Nothing
{
fn eq( &self, other : T ) -> bool
{
false
}
}
//
impl PartialEq< Nothing >
for Nothing
{
fn eq( &self, other : Nothing ) -> bool
{
true
}
}
Playground is here.