fn from()

in heatmap/src/error.rs [26:39]


    fn from(other: HistogramError) -> Self {
        match other {
            HistogramError::Empty => Self::Empty,
            HistogramError::InvalidPercentile => Self::InvalidPercentile,
            HistogramError::OutOfRange => Self::OutOfRange,
            HistogramError::InvalidConfig => Self::InvalidConfig,
            HistogramError::IncompatibleHistogram => {
                // SAFETY: a heatmap has histograms which all have the same
                // configuration and therefore the operations which act on two
                // histograms will always have two compatible histograms
                panic!("imposible state")
            }
        }
    }