// Finds blocks where record is located. None is returned if block is already loaded.
Finds blocks where record is located. None is returned if block is already loaded.
Finds blocks where record is located . None is returned if block is already loaded .
fn find_block(&self, item_num: usize) -> Option<usize> {
        if item_num >= self.0.range_begin && item_num < self.0.range_end {
            return None;
        }
        // All blocks sizes are equal except maybe the last one since it's a fixed sized column and block size limit is constant.
        let block_len = self.0.meta.view_blocks(&self.0.field)[0].numitems;
        Some(item_num / block_len as usize)
    }
fn find_block ( & self , item_num : usize ) -> Option < usize > { if item_num >= self . 0 . range_begin && item_num < self . 0 . range_end { return None ; } // All blocks sizes are equal except maybe the last one since it's a fixed sized column and block size limit is constant. let block_len = self . 0 . meta . view_blocks ( & self . 0 . field ) [ 0 ] . numitems ; Some ( item_num / block_len as usize ) }
Finds blocks where record is located.
Finds blocks where record is located .
&self
item_num
usize