GrowthWithConstantTimeAccess trait is defined. Note that every type implementing this trait also implements Growth. In other words, this is a special growth case. In addition, it provides the function get_fragment_and_inner_indices_unchecked which returns fragment and within-fragment indices without requiring the current state of the vector using constant time access function.
ptr_mut method is implemented for split vectors having a constant time access growth strategy. This method is unsafe in the sense that it allows reading from or writing to uninitialized memory. On the other hand, it is safe against access violation, it only returns a memory location owned by the split vector.
GrowthWithConstantTimeAccess
trait is defined. Note that every type implementing this trait also implementsGrowth
. In other words, this is a special growth case. In addition, it provides the functionget_fragment_and_inner_indices_unchecked
which returns fragment and within-fragment indices without requiring the current state of the vector using constant time access function.ptr_mut
method is implemented for split vectors having a constant time access growth strategy. This method is unsafe in the sense that it allows reading from or writing to uninitialized memory. On the other hand, it is safe against access violation, it only returns a memory location owned by the split vector.