fn compute_index(&self, requested: usize) -> usize {
        debug_assert!(requested < self.len);
        let zeroed = requested + self.zero;

        // This part is critical for performance,
        // so an if/else is used here instead of a moludo operation
        if zeroed >= self.inner.len() {
            zeroed - self.inner.len()
        } else {
            zeroed
        }
    }
/// Compute actual index in underlying storage given the requested index.
Compute actual index in underlying storage given the requested index.
Compute actual index in underlying storage given the requested index .
fn compute_index(&self, requested: usize) -> usize {
        debug_assert!(requested < self.len);
        let zeroed = requested + self.zero;
        // This part is critical for performance,
        // so an if/else is used here instead of a moludo operation
        if zeroed >= self.inner.len() {
            zeroed - self.inner.len()
        } else {
            zeroed
        }
    }
fn compute_index ( & self , requested : usize ) -> usize { debug_assert ! ( requested self len ) ; let zeroed = requested + self . zero ; // This part is critical for performance, // so an if/else is used here instead of a moludo operation if zeroed >= self . inner . len ( ) { zeroed - self . inner . len ( ) } else { zeroed } }
Compute actual index in underlying storage given the requested index.
Compute actual index in underlying storage given the requested index .
&self
requested
usize
&self
requested
usize