pub mod block_chain;
pub mod chain_index;
pub mod entry;
pub mod header;
use core::num::NonZeroU64;
use core::ops;
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct ChainOffset(pub NonZeroU64);
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct BlockOffset(pub NonZeroU64);
#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
pub struct StreamOffset(pub NonZeroU64);
impl ops::Add<u64> for StreamOffset {
type Output = Self;
fn add(self, rhs: u64) -> Self::Output {
StreamOffset(self.0.checked_add(rhs).unwrap())
}
}