pub trait Signed: Sized + Copy + Neg<Output = Self> + Shr<u32, Output = Self> + Shl<u32, Output = Self> + BitXor<Self, Output = Self> {
    type Unsigned: Unsigned;

    const BITS: u32;

    fn unsigned(self) -> Self::Unsigned;
}
Expand description

Trait that encodes common behaviors of signed numbers.

Required Associated Types

The unsigned representation of this number.

Required Associated Constants

The number of bits in this signed number.

Required Methods

Coerce this number bitwise into its unsigned representation.

Implementations on Foreign Types

Implementors