Open

Description
I'm missing the resize functionality (similar to the std::vec::Vec::resize):
fn resize(&mut self, new_len: usize, value: T)
I have to fill some items in a random order, so first the array have to be resized with some default values before indexing can start.
I could use plain arrays, but I'd like to use ArrayVec for it's "virtual dynamic" size.
Is there a function for this I've missed?
Edit:
This is my workaround:
(0..count).for_each(|_| self.attributes.push(Attribute::new()));
Metadata
Metadata
Assignees
Labels
No labels