Function |saturating_to_u32

std/conv::|saturating_to_u32


Usage

|saturating_to_u32<T>(value)

Generics

◻ T: SaturatingToU32

Parameters

↳ value: T

Return

↴ u32


Turns data into u32, saturating if needed.

This function makes a saturating and infaillible conversion to u32. If incoming data represents something out of bounds for u32, then the resulting value is set to minimum or maximum, depending what is the closest to truth.