fn find_offset(&self, rows: &[(Row, NonZeroUsize)]) -> (usize, usize) {
        let mut offset_remaining = self.offset;
        for (i, (_, count)) in rows.iter().enumerate() {
            let count = count.get();
            if count > offset_remaining {
                return (i, offset_remaining);
            }
            offset_remaining -= count;
        }
        // The offset is past the end of the rows; we will
        // return nothing.
        (rows.len(), 0)
    }
/// Determines the index of the (Row, count) pair, and the
/// index into the count within that pair, corresponding to a particular offset.
///
/// For example, if `self.offset` is 42, and `rows` is
/// `&[(_, 10), (_, 17), (_, 20), (_, 11)]`,
/// then this function will return `(2, 15)`, because after applying
/// the offset, we will start at the row/diff pair in position 2,
/// and skip 15 of the 20 rows that that entry represents.
Determines the index of the (Row, count) pair, and the
index into the count within that pair, corresponding to a particular offset.


Determines the index of the ( Row count ) pair and the index into the count within that pair corresponding to a particular offset .
fn find_offset(&self, rows: &[(Row, NonZeroUsize)]) -> (usize, usize) {
        let mut offset_remaining = self.offset;
        for (i, (_, count)) in rows.iter().enumerate() {
            let count = count.get();
            if count > offset_remaining {
                return (i, offset_remaining);
            }
            offset_remaining -= count;
        }
        // The offset is past the end of the rows; we will
        // return nothing.
        (rows.len(), 0)
    }
fn find_offset ( & self , rows : & [ ( Row , NonZeroUsize ) ] ) -> ( usize , usize ) { let mut offset_remaining = self . offset ; for ( i , ( _ , count ) ) in rows . iter ( ) . enumerate ( ) { let count = count . get ( ) ; if count > offset_remaining { return ( i , offset_remaining ) ; } offset_remaining -= count ; } // The offset is past the end of the rows; we will // return nothing. ( rows . len ( ) , 0 ) }
Determines the index of the (Row, count) pair, and the
index into the count within that pair, corresponding to a particular offset.
Determines the index of the ( Row count ) pair and the index into the count within that pair corresponding to a particular offset .
&self
rows
&[(Row, NonZeroUsize)]
&self
rows
&[(Row, NonZeroUsize)]