Trait figures::IntoUnsigned

source ·
pub trait IntoUnsigned {
    type Unsigned;

    // Required method
    fn into_unsigned(self) -> Self::Unsigned;
}
Expand description

Converts a value into its signed representation, clamping negative numbers to 0.

Required Associated Types§

source

type Unsigned

The unsigned representation of this type.

Required Methods§

source

fn into_unsigned(self) -> Self::Unsigned

Returns this value as an unsigned value. Negative values will be converted to 0.

Implementations on Foreign Types§

source§

impl IntoUnsigned for i32

source§

impl IntoUnsigned for u32

Implementors§

source§

impl IntoUnsigned for Px

source§

impl IntoUnsigned for UPx

source§

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

source§

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

source§

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