fn histogram_index(&mut self, time: u64) -> Result<usize, &'static str> {
        if time < self.data.start {
            return Err("sample too early");
        } else if time >= self.data.stop {
            return Err("sample too late");
        }
        let t = time - self.data.start;
        let index = (t / self.config.slice_duration) as usize;
        Ok(index)
    }
/// internal function to find the index of the histogram in the heatmap
internal function to find the index of the histogram in the heatmap
internal function to find the index of the histogram in the heatmap
fn histogram_index(&mut self, time: u64) -> Result<usize, &'static str> {
        if time < self.data.start {
            return Err("sample too early");
        } else if time >= self.data.stop {
            return Err("sample too late");
        }
        let t = time - self.data.start;
        let index = (t / self.config.slice_duration) as usize;
        Ok(index)
    }
fn histogram_index ( & mut self , time : u64 ) -> Result < usize , & ' static str > { if time < self . data . start { return Err ( " " ) ; } else if time >= self . data . stop { return Err ( " " ) ; } let t = time - self . data . start ; let index = ( t / self . config . slice_duration ) as usize ; Ok ( index ) }
internal function to find the index of the histogram in the heatmap
internal function to find the index of the histogram in the heatmap
&mut self
time
u64