Trait prometheus::core::Number [−][src]
An interface for numbers. Used to generically model float metrics and integer metrics, i.e.
Counter
and IntCounter
.
Required methods
fn from_i64(v: i64) -> Self
[src]
std::convert::From<i64> for f64
is not implemented, so that we need to implement our own.
fn into_f64(self) -> f64
[src]
Convert to a f64.