pub trait CheckEqual {
// Required method
fn check_equal(&self, other: &Self);
}
Expand description
Something that can be checked for equality and printed out to a debug channel if bad.
Required Methods§
Sourcefn check_equal(&self, other: &Self)
fn check_equal(&self, other: &Self)
Perform the equality check.
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.