symphonia_core::util::clamp

Function clamp_u16

Source
pub fn clamp_u16(val: u32) -> u16
Expand description

Clamps the given value to the [0, 65_535] range.