fill_with_value

Function fill_with_value 

Source
pub fn fill_with_value<T: Copy>(target: &mut [T], value: T)
Expand description

Fills the mutable slice with the specified value.

Arguments:

  • target: The slice to be filled;
  • value: The value;