o3 0.62.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::num::NonZero;

pub use error::Error;

mod error;

#[derive(Debug)]
pub struct Prefix<const MAX: u32> {
    pub(in crate::buffer) start: u32,
    pub(in crate::buffer) end: NonZero<u32>,
}

impl<const MAX: u32> Prefix<MAX> {
    pub const fn count(&self) -> NonZero<u32> {
        self.end
    }
}