pub trait UnsignedIntoSigned: Copy + Sized {
    type Signed;

    fn into_positive(self) -> Self::Signed;
    fn into_negative(self) -> Self::Signed;

    fn into_signed(self, sign: i32) -> Self::Signed { ... }
Expand description

A trait implemented on unsigned types which can be converted into crate::Signeds.

Required Associated Types§

Required Methods§

Converts self into a Signed::Positive.

Converts self into a Signed::Negative.

Provided Methods§

Converts self into a Signed matching the given sign.

Implementations on Foreign Types§