float

Trait Signum

Source
pub trait Signum {
    // Required method
    fn signum(self) -> Self;
}
Expand description

The sign of the number.

Required Methods§

Source

fn signum(self) -> Self

Returns number representing the sign of self

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.

Implementations on Foreign Types§

Source§

impl Signum for f32

Source§

fn signum(self) -> Self

Source§

impl Signum for f64

Source§

fn signum(self) -> Self

Implementors§