brk_mempool 0.3.0-beta.7

Bitcoin mempool monitor with fee estimation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Index into the temporary pool used during block building.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PoolIndex(u32);

impl PoolIndex {
    #[inline]
    pub fn as_usize(self) -> usize {
        self.0 as usize
    }
}

impl From<usize> for PoolIndex {
    #[inline]
    fn from(value: usize) -> Self {
        Self(value as u32)
    }
}