Skip to main content

IntoUnsigned

Trait 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§