div_into_u16

Function div_into_u16 

Source
pub const fn div_into_u16<const B: u32, const ARG: u32>(v: f32) -> u16
Expand description

The clamped result is always within the #[bits(B)] range, so bitfield_struct’s bounds check never fires. This is why a custom try is needed