Skip to main content

scatter

Function scatter 

Source
fn scatter(recipes: &mut [u8], digits: usize, indices: usize)
Expand description

Write each digit to its respective index. Indices are a single byte so always less than 256. Taking a fixed-size window allows the compiler to remove the bounds check for every write.