openraft 0.10.0-alpha.18

Advanced Raft consensus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::ops::Range;

use crate::base::range_map::RangeMapBound;
use crate::base::range_map::RangeMapValue;

/// A segment defined by a key range with a fixed number of associated values.
///
/// Represents the range `[start, end)` with `N` values, one per channel/stage.
#[allow(dead_code)]
pub struct RangeValues<Bound, V, const N: usize>
where
    Bound: RangeMapBound,
    V: RangeMapValue,
{
    pub range: Range<Bound>,
    pub values: [V; N],
}