pub trait ApproxEq<Eps> { fn approx_epsilon() -> Eps; fn approx_eq(&self, other: &Self) -> bool; fn approx_eq_eps(&self, other: &Self, approx_epsilon: &Eps) -> bool; }
Trait for testing approximate equality
fn approx_epsilon() -> Eps
fn approx_eq(&self, other: &Self) -> bool
fn approx_eq_eps(&self, other: &Self, approx_epsilon: &Eps) -> bool
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).