Skip to main content

dope_sys/memory/buffer/
index.rs

1use std::num::NonZero;
2
3/// Exact native buffer identity and its nonzero storage bounds.
4pub trait Index: Copy + Eq {
5    const ZERO: Self;
6
7    fn advance(&mut self);
8    fn is_within(self, capacity: NonZero<u16>) -> bool;
9}