fn compute_gap(&self, ix: usize) -> usize {
        let before = if ix == 0 { 0 } else { self.state.state_cache[ix - 1].offset };
        let after = if let Some(item) = self.state.state_cache.get(ix + 1) {
            item.offset
        } else {
            self.state.buf_size
        };
        after - before
    }
/// Compute the gap that would result after deleting the given entry.
Compute the gap that would result after deleting the given entry.
Compute the gap that would result after deleting the given entry .
fn compute_gap(&self, ix: usize) -> usize {
        let before = if ix == 0 { 0 } else { self.state.state_cache[ix - 1].offset };
        let after = if let Some(item) = self.state.state_cache.get(ix + 1) {
            item.offset
        } else {
            self.state.buf_size
        };
        after - before
    }
fn compute_gap ( & self , ix : usize ) -> usize { let before = if ix == 0 { 0 } else { self . state . state_cache [ ix - 1 ] . offset } ; let after = if let Some ( item ) = self . state . state_cache . get ( ix + 1 ) { item . offset } else { self . state . buf_size } ; after - before }
Compute the gap that would result after deleting the given entry.
Compute the gap that would result after deleting the given entry .
&self
ix
usize