dope-sys 0.77.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::num::NonZero;

/// Exact native buffer identity and its nonzero storage bounds.
pub trait Index: Copy + Eq {
    type Error;

    const ZERO: Self;

    fn advance(&mut self);
    fn is_within(self, capacity: NonZero<u16>) -> bool;
    fn invalid(self, capacity: NonZero<u16>) -> Self::Error;
}