We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4a6d39 commit f773b8bCopy full SHA for f773b8b
src/histogram.rs
@@ -104,7 +104,7 @@ impl Debug for Histogram {
104
impl Histogram {
105
/// Record a value.
106
#[inline]
107
- pub const fn measure(&self, raw_value: u64) {
+ pub fn measure(&self, raw_value: u64) {
108
#[cfg(feature = "metrics")]
109
{
110
let value_float: f64 = raw_value as f64;
@@ -123,7 +123,7 @@ impl Histogram {
123
124
/// Retrieve a percentile [0-100]. Returns NAN if no metrics have been
125
/// collected yet.
126
- pub const fn percentile(&self, p: f64) -> f64 {
+ pub fn percentile(&self, p: f64) -> f64 {
127
128
129
assert!(p <= 100., "percentiles must not exceed 100.0");
0 commit comments