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