iter_vec

Crates.ioiter_vec
lib.rsiter_vec
version0.1.0
sourcesrc
created_at2021-03-25 08:47:30.923496
updated_at2021-03-25 08:47:30.923496
descriptionvector of iterator but specialized for std::slice::Iter
homepage
repositoryhttps://github.com/t18b219k/iter_vec
max_upload_size
id373293
size5,411
Kenta Kasahara (KentaTheBugMaker)

documentation

README

Latest version Documentation MIT Apache

iter_vec

Description

usable for vertex and index buffer temporary storage.

Usage

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)
Commit count: 0

cargo fmt