1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
use bloom::Bloom;

/// Group of blooms that are in the same index.
#[derive(Clone)]
pub struct BloomGroup {
	pub blooms: Vec<Bloom>,
}

impl BloomGroup {
	pub fn new(size: usize) -> Self {
		let blooms = (0..size).into_iter().map(|_| Bloom::default()).collect();

		BloomGroup {
			blooms: blooms
		}
	}
}