Function mask [src]
Returns index modulo the length of the backing slice.
Prototype
pub fn mask(self: RingBuffer, index: usize) usize
Parameters
self: RingBuffer
index: usize
Source
pub fn mask(self: RingBuffer, index: usize) usize {
return index % self.data.len;
}