AsFloat

Trait AsFloat 

Source
pub trait AsFloat: AsNumber<f64> {
    // Required method
    fn as_float(&self) -> Float;

    // Provided method
    fn inner(&self) -> f64 { ... }
}

Required Methods§

Source

fn as_float(&self) -> Float

Provided Methods§

Source

fn inner(&self) -> f64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AsFloat for &f64

Source§

fn as_float(&self) -> Float

Source§

impl AsFloat for f64

Source§

fn as_float(&self) -> Float

Implementors§