Two slice returning methods are introduced. These methods are important in performant critical applications which allows to directly benefit from slice optimizations.
fn slices(&self, range: R) returns an iterator of slices representing a given range of the vector.
fn slices_mut(&mut self, range: R) returns a mutable iterator of slices representing a given range of the vector.
A concurrently safe growth method method grow_and_initialize is introduced. This methods performs capacity growth and length growth at the same time making sure that all elements are initialized with valid values.
Also unsafe get_ptr_mut_and_indices method is implemented.
Two slice returning methods are introduced. These methods are important in performant critical applications which allows to directly benefit from slice optimizations.
fn slices(&self, range: R)
returns an iterator of slices representing a given range of the vector.fn slices_mut(&mut self, range: R)
returns a mutable iterator of slices representing a given range of the vector.A concurrently safe growth method method
grow_and_initialize
is introduced. This methods performs capacity growth and length growth at the same time making sure that all elements are initialized with valid values.Also unsafe
get_ptr_mut_and_indices
method is implemented.Test methods are extended accordingly.