18 lines
438 B
Rust
18 lines
438 B
Rust
|
/// 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,
|
||
|
}
|