pub trait Signum {
// Required methods
fn signum(self) -> Self;
fn signum_i128(self) -> i128;
}Expand description
✅ The sign of the number.
Returns:
1.0if positive,0.0if zero,-1.0if negative.
§Panics
This function never panics.
Required Methods§
fn signum(self) -> Self
fn signum_i128(self) -> i128
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.