Trait malachite_base::num::basic::traits::NegativeOne

source ·
pub trait NegativeOne {
    const NEGATIVE_ONE: Self;
}
Expand description

Provides the constant -1.

Required Associated Constants§

source

const NEGATIVE_ONE: Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NegativeOne for f32

The constant -1.0 for primitive floating-point types.

source§

const NEGATIVE_ONE: f32 = -1f32

source§

impl NegativeOne for f64

The constant -1.0 for primitive floating-point types.

source§

const NEGATIVE_ONE: f64 = -1f64

source§

impl NegativeOne for i8

The constant -1.

§Examples

See here.

source§

const NEGATIVE_ONE: i8 = -1i8

source§

impl NegativeOne for i16

The constant -1.

§Examples

See here.

source§

const NEGATIVE_ONE: i16 = -1i16

source§

impl NegativeOne for i32

The constant -1.

§Examples

See here.

source§

const NEGATIVE_ONE: i32 = -1i32

source§

impl NegativeOne for i64

The constant -1.

§Examples

See here.

source§

const NEGATIVE_ONE: i64 = -1i64

source§

impl NegativeOne for i128

The constant -1.

§Examples

See here.

source§

const NEGATIVE_ONE: i128 = -1i128

source§

impl NegativeOne for isize

The constant -1.

§Examples

See here.

source§

const NEGATIVE_ONE: isize = -1isize

source§

impl NegativeOne for NonZeroI8

source§

const NEGATIVE_ONE: Self = _

source§

impl NegativeOne for NonZeroI16

source§

const NEGATIVE_ONE: Self = _

source§

impl NegativeOne for NonZeroI32

source§

const NEGATIVE_ONE: Self = _

source§

impl NegativeOne for NonZeroI64

source§

const NEGATIVE_ONE: Self = _

source§

impl NegativeOne for NonZeroI128

source§

const NEGATIVE_ONE: Self = _

source§

impl NegativeOne for NonZeroIsize

source§

const NEGATIVE_ONE: Self = _

Implementors§