pub trait Signum { // Required method fn signum(self) -> Self; }
Trait for getting a number that represents the sign of self.
self
Returns a number that represents the sign of self. For floating point:
1.0
+0.0
INFINITY
-1.0
-0.0
NEG_INFINITY