Skip to main content

fill_const

Function fill_const 

Source
pub const fn fill_const<T: Copy>(slice: &mut [T], value: T)
Expand description

Fills the given slice with the given, copyable value.

ยงNotes

This requires T: Copy constraint, because it is const.