SignedInteger

Trait SignedInteger 

Source
pub trait SignedInteger: Integer + Neg<Output = Self> { }
Expand description

The base trait for all signed numbers, either built-in (i8, i16, i32, i64, i128) or arbitrary-int (i1, i7 etc.).

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 SignedInteger for i8

Source§

impl SignedInteger for i16

Source§

impl SignedInteger for i32

Source§

impl SignedInteger for i64

Source§

impl SignedInteger for i128

Implementors§

Source§

impl<const BITS: usize> SignedInteger for Int<i8, BITS>

Source§

impl<const BITS: usize> SignedInteger for Int<i16, BITS>

Source§

impl<const BITS: usize> SignedInteger for Int<i32, BITS>

Source§

impl<const BITS: usize> SignedInteger for Int<i64, BITS>

Source§

impl<const BITS: usize> SignedInteger for Int<i128, BITS>