Trait TryPartialEq

Source
pub trait TryPartialEq {
    // Required method
    fn try_eq(&self, other: &Self) -> Option<bool>;
}
Expand description

Tries to compare the MultitraitObject with another object and returns Some(bool) when the underlying type implements PartialEq and has the PartialEqAny trait registered on the object.

Required Methods§

Source

fn try_eq(&self, other: &Self) -> Option<bool>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§