Trait dashu::base::AbsEq

source ·
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§

source

fn abs_eq(&self, rhs: &Rhs) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5

Implementations on Foreign Types§

source§

impl AbsEq for f32

source§

fn abs_eq(&self, rhs: &f32) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
source§

impl AbsEq for f64

source§

fn abs_eq(&self, rhs: &f64) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
source§

impl AbsEq for i8

source§

fn abs_eq(&self, rhs: &i8) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
source§

impl AbsEq for i16

source§

fn abs_eq(&self, rhs: &i16) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
source§

impl AbsEq for i32

source§

fn abs_eq(&self, rhs: &i32) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
source§

impl AbsEq for i64

source§

fn abs_eq(&self, rhs: &i64) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
source§

impl AbsEq for i128

source§

fn abs_eq(&self, rhs: &i128) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
source§

impl AbsEq for isize

source§

fn abs_eq(&self, rhs: &isize) -> bool

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5

Implementors§