pub trait Index: Copy + Eq {
const ZERO: Self;
// Required methods
fn advance(&mut self);
fn offset(self, stride: NonZero<u32>) -> U64<0, { u64::MAX }>;
fn is_within(self, capacity: NonZero<u16>) -> bool;
}Expand description
Exact native buffer identity and its nonzero storage bounds.
Required Associated Constants§
Required Methods§
fn advance(&mut self)
fn offset(self, stride: NonZero<u32>) -> U64<0, { u64::MAX }>
fn is_within(self, capacity: NonZero<u16>) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".