utils::number

Trait Signed

Source
pub trait Signed:
    Number
    + Neg<Output = Self>
    + From<i8> {
    const MINUS_ONE: Self;
}
Expand description

Trait implemented by the primitive signed integer and floating point types.

Required Associated Constants§

Source

const MINUS_ONE: 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 Signed for f32

Source§

const MINUS_ONE: Self = -1f32

Source§

impl Signed for f64

Source§

const MINUS_ONE: Self = -1f64

Source§

impl Signed for i8

Source§

const MINUS_ONE: Self = -1i8

Source§

impl Signed for i16

Source§

const MINUS_ONE: Self = -1i16

Source§

impl Signed for i32

Source§

const MINUS_ONE: Self = -1i32

Source§

impl Signed for i64

Source§

const MINUS_ONE: Self = -1i64

Source§

impl Signed for i128

Source§

const MINUS_ONE: Self = -1i128

Source§

impl Signed for isize

Source§

const MINUS_ONE: Self = -1isize

Implementors§