Trait common::AsF64

source ·
pub trait AsF64 {
    // Required method
    fn cast(&self) -> f64;
}
Expand description

A simple trait to cast implementors to f64. Pretty useful in Function which takes Generic arguments

Required Methods§

source

fn cast(&self) -> f64

Implementations on Foreign Types§

source§

impl AsF64 for u64

source§

fn cast(&self) -> f64

Implementors§