Function flex_alloc::vec::from_elem

source ยท
pub fn from_elem<T: Clone>(elem: T, count: usize) -> Vec<T, Global>
Expand description

Create a Vec<T> from a cloneable element T and a count of the number of elements.