pub struct Index<const RANGE: usize> { /* private fields */ }Expand description
Internal Index struct emcapsulating masking and wrapping operations according to size const size N. Note that we deliberately use u32 to limit the index to 4 bytes and max supported capacity to 2^31-1
Implementations§
Trait Implementations§
impl<const RANGE: usize> Eq for Index<RANGE>
impl<const RANGE: usize> StructuralPartialEq for Index<RANGE>
Auto Trait Implementations§
impl<const RANGE: usize> !Freeze for Index<RANGE>
impl<const RANGE: usize> !RefUnwindSafe for Index<RANGE>
impl<const RANGE: usize> Send for Index<RANGE>
impl<const RANGE: usize> !Sync for Index<RANGE>
impl<const RANGE: usize> Unpin for Index<RANGE>
impl<const RANGE: usize> UnwindSafe for Index<RANGE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more