* rust: add secondary function with preallocated internal vecs * docs: document pre allocation feature for rust implementation