1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
/// Uniquely identifies bloom group position.
#[derive(Debug, PartialEq, Eq, Hash, Clone)]
pub struct GroupPosition {
	/// Bloom level.
	pub level: usize,
	/// Index of the group.
	pub index: usize,
}

/// Uniquely identifies bloom position including the position in the group.
#[derive(Debug, PartialEq, Eq, Hash, Clone)]
pub struct Position {
 	/// Group position.
	pub group: GroupPosition,
	/// Number in group.
	pub number: usize,
}