pub fn buffer_set<T: Clone>(data: &mut [T], from: usize, len: usize, val: T)
Expand description

A simple way to set buffer contents. The compiler does the heavy lifting. see https://stackoverflow.com/a/51732799/1345238/