Signed

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

Source§

impl Signed for f64

Source§

const MINUS_ONE: Self

Source§

impl Signed for i8

Source§

const MINUS_ONE: Self

Source§

impl Signed for i16

Source§

const MINUS_ONE: Self

Source§

impl Signed for i32

Source§

const MINUS_ONE: Self

Source§

impl Signed for i64

Source§

const MINUS_ONE: Self

Source§

impl Signed for i128

Source§

const MINUS_ONE: Self

Source§

impl Signed for isize

Source§

const MINUS_ONE: Self

Implementors§