Skip to main content

bitset_word_mut

Function bitset_word_mut 

Source
pub fn bitset_word_mut(set: &mut [u16], flag: u16) -> &mut u16
Expand description

Borrow the underlying 16-bit word for direct fiddling, mirroring the C macro.

Useful if you need to write several flags in the same word in one go.

§Panics

Panics if set is not long enough.