pub trait TryPartialEq<Rhs: ?Sized = Self> {
type Error;
// Required method
fn try_eq(&self, other: &Rhs) -> Result<bool, Self::Error>;
// Provided method
fn try_ne(&self, other: &Rhs) -> Result<bool, Self::Error> { ... }
}Expand description
The try trait for PartialEq.