[][src]Function vecshard::merge_shards

Important traits for VecShard<T>
pub fn merge_shards<T>(left: VecShard<T>, right: VecShard<T>) -> VecShard<T>

Merge the given shards into a single shard.

If left and right are from the same Vec and directly adjacent with the end of left directly touching the start of right, this will re-use that allocation. Otherwise, it will likely allocate a new Vec.