Trait figures::IntoSigned

source ·
pub trait IntoSigned {
    type Signed;

    // Required method
    fn into_signed(self) -> Self::Signed;
}
Expand description

Converts a value into its signed representation, clamping negative numbers to i32::MAX.

Required Associated Types§

source

type Signed

The signed representation of this type.

Required Methods§

source

fn into_signed(self) -> Self::Signed

Returns this value as an unsigned value. Values that are larger than can fit in an i32 are converted to i32::MAX.

Implementations on Foreign Types§

source§

impl IntoSigned for f32

§

type Signed = f32

source§

fn into_signed(self) -> Self::Signed

source§

impl IntoSigned for i32

§

type Signed = i32

source§

fn into_signed(self) -> Self::Signed

source§

impl IntoSigned for u32

§

type Signed = i32

source§

fn into_signed(self) -> Self::Signed

Implementors§

source§

impl IntoSigned for Lp

§

type Signed = Lp

source§

impl IntoSigned for Px

§

type Signed = Px

source§

impl IntoSigned for UPx

§

type Signed = Px

source§

impl<Unit> IntoSigned for Point<Unit>where Unit: IntoSigned,

§

type Signed = Point<<Unit as IntoSigned>::Signed>

source§

impl<Unit> IntoSigned for Rect<Unit>where Unit: IntoSigned,

§

type Signed = Rect<<Unit as IntoSigned>::Signed>

source§

impl<Unit> IntoSigned for Size<Unit>where Unit: IntoSigned,

§

type Signed = Size<<Unit as IntoSigned>::Signed>