Skip to main content

channel_is_valid

Function channel_is_valid 

Source
const fn channel_is_valid(mask: u32, shift: u8) -> bool
Expand description

A channel is a contiguous run of ones at exactly shift. An empty mask has no shift, and any other shift would make Format::pack overflow.