Skip to main content

Index

Trait Index 

Source
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§

Source

const ZERO: Self

Required Methods§

Source

fn advance(&mut self)

Source

fn offset(self, stride: NonZero<u32>) -> U64<0, { u64::MAX }>

Source

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".

Implementors§