pub trait MaybeFloatwhere
    Self: From<f64> + From<f32>,{
    // Required method
    fn try_as_f64(&self) -> Result<f64, TypeMismatch>;

    // Provided method
    fn try_as_f32(&self) -> Result<f32, TypeMismatch> { ... }
}
Expand description

Types that can be a float

Required Methods§

source

fn try_as_f64(&self) -> Result<f64, TypeMismatch>

Try to interpret datum as f64

Provided Methods§

source

fn try_as_f32(&self) -> Result<f32, TypeMismatch>

Try to interpret datum as f64

Implementors§