pub fn merge(&mut self, other: &Heatmap) {
        for slice in other {
            let slice = slice.clone();
            let start = slice.start();
            for bucket in &slice.histogram {
                let _ = self.increment_by(start, bucket.value(), bucket.count());
            }
        }
    }
/// merge one Heatmap into another Heatmap
///
/// # Example
/// ```
/// extern crate heatmap;
/// extern crate time;
///
/// let mut a = heatmap::Heatmap::configure()
///     .num_slices(60)
///     .slice_duration(1_000_000_000)
///     .build()
///     .unwrap();
///
/// let mut b = heatmap::Heatmap::new();
///
/// assert_eq!(a.entries(), 0);
/// assert_eq!(b.entries(), 0);
///
/// let t0 = time::precise_time_ns();
/// let t1 = t0 + 1_000_000_000;
///
/// let _ = a.increment(t0, 1);
/// let _ = b.increment(t0, 1);
///
/// assert_eq!(a.entries(), 1);
/// assert_eq!(b.entries(), 1);
///
/// a.merge(&mut b);
///
/// assert_eq!(a.entries(), 2);
/// assert_eq!(a.get(t0, 1).unwrap(), 2);
/// assert_eq!(a.get(t0, 2).unwrap(), 0);
/// assert_eq!(a.get(t1, 1).unwrap(), 0);
/// ```
merge one Heatmap into another Heatmap
merge one Heatmap into another Heatmap
pub fn merge(&mut self, other: &Heatmap) {
        for slice in other {
            let slice = slice.clone();
            let start = slice.start();
            for bucket in &slice.histogram {
                let _ = self.increment_by(start, bucket.value(), bucket.count());
            }
        }
    }
pub fn merge ( & mut self , other : & Heatmap ) { for slice in other { let slice = slice . clone ( ) ; let start = slice . start ( ) ; for bucket in & slice . histogram { let _ = self . increment_by ( start , bucket . value ( ) , bucket . count ( ) ) ; } } }
merge one Heatmap into another Heatmap
merge one Heatmap into another Heatmap
&mut self
other
&Heatmap
example
```
extern crate heatmap;
extern crate time.



let mut b = heatmap::Heatmap::new().









a.merge(&mut b).


` ` ` extern crate heatmap ; extern crate time . let mut b = heatmap :: Heatmap :: new () . a . merge ( &mut b ) .