[−][src]Trait maths_traits::analysis::ordered::Sign
Helpful methods for manipulating an element's order relative to 0
Required methods
fn signum(self) -> Self
Returns 1 if positive, -1 if negative, or itself (ie. 0 or NaN) if neither
fn abs(self) -> Self
Returns this element's negative if less than 0 or itself otherwise