blob: 4cbed4663da7ed7f07db501774834e1344d16341 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use primrose::library::lazy_unique_vector::{LazyUniqueVec};
use primrose::traits::Container;
use primrose::tools::gen_dataset_512;
fn vec_insertion_512m() {
let s: &mut dyn Container<u32> = &mut LazyUniqueVec::new();
let data = gen_dataset_512();
for val in data.iter() {
s.insert(*val);
}
println!("Contains 1024? {}", s.contains(&1024));
}
fn main() {
vec_insertion_512m();
}
|