Skip to main content

ensure_len

Function ensure_len 

Source
fn ensure_len<T: Default>(v: &mut Vec<T>, size: usize)
Expand description

Grow a Vec by appending the type’s default value until the size is reached.