HasSign

Trait HasSign 

Source
pub trait HasSign {
    // Required methods
    fn signum(self) -> Self;
    fn abs(self) -> Self;
}

Required Methods§

Source

fn signum(self) -> Self

Source

fn abs(self) -> 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 HasSign for f32

Source§

fn signum(self) -> Self

Source§

fn abs(self) -> Self

Source§

impl HasSign for f64

Source§

fn signum(self) -> Self

Source§

fn abs(self) -> Self

Implementors§