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§
Required Methods§
sourcefn into_unsigned(self) -> Self::Unsigned
fn into_unsigned(self) -> Self::Unsigned
Returns this value as an unsigned value. Negative values will be converted to 0.