Trait metrics::IntoF64

source ·
pub trait IntoF64 {
    // Required method
    fn into_f64(self) -> f64;
}
Expand description

An object which can be converted into a f64 representation.

This trait provides a mechanism for existing types, which have a natural representation as a 64-bit floating-point number, to be transparently passed in when recording a histogram.

Required Methods§

source

fn into_f64(self) -> f64

Converts this object to its f64 representation.

Implementations on Foreign Types§

source§

impl IntoF64 for f32

source§

fn into_f64(self) -> f64

source§

impl IntoF64 for f64

source§

fn into_f64(self) -> f64

source§

impl IntoF64 for i8

source§

fn into_f64(self) -> f64

source§

impl IntoF64 for i16

source§

fn into_f64(self) -> f64

source§

impl IntoF64 for i32

source§

fn into_f64(self) -> f64

source§

impl IntoF64 for u8

source§

fn into_f64(self) -> f64

source§

impl IntoF64 for u16

source§

fn into_f64(self) -> f64

source§

impl IntoF64 for u32

source§

fn into_f64(self) -> f64

source§

impl IntoF64 for Duration

source§

fn into_f64(self) -> f64

Implementors§