Function rayon::iter::walk_tree::split_vec

source ยท
fn split_vec<T>(v: &mut Vec<T>) -> Option<Vec<T>>
Expand description

Divide given vector in two equally sized vectors. Return None if initial size is <=1. We return the first half and keep the last half in v.