pub trait AbsEq<Rhs = Self> {
// Required method
fn abs_eq(&self, rhs: &Rhs) -> bool;
}👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
Expand description
Check whether the magnitude of this number is equal the magnitude of the other number
§Examples
assert!(5.abs_eq(&-5));
assert!(12.3.abs_eq(&-12.3));Required Methods§
fn abs_eq(&self, rhs: &Rhs) -> bool
👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5