Crates.io | iter_vec |
lib.rs | iter_vec |
version | 0.1.0 |
source | src |
created_at | 2021-03-25 08:47:30.923496 |
updated_at | 2021-03-25 08:47:30.923496 |
description | vector of iterator but specialized for std::slice::Iter |
homepage | |
repository | https://github.com/t18b219k/iter_vec |
max_upload_size | |
id | 373293 |
size | 5,411 |
usable for vertex and index buffer temporary storage.
let content0 = vec![1, 2, 3, 4];
let content1 = [5, 6, 7, 8];
let content2 = [9, 0];
let iter_vec = ExactSizedIterVec::build_from_vec(vec![
content0.iter(),
content1.iter(),
content2.iter(),]);
let flat: Vec<i32> = iter_vec.copied().collect();
assert_eq!(vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 0], flat)