pub trait FloatConstraint: Sized + ToPrimitive + Debug {
    // Required methods
    fn get_f64(&self) -> f64;
    fn constraint(&self) -> bool;

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

Required Methods§

source

fn get_f64(&self) -> f64

source

fn constraint(&self) -> bool

Provided Methods§

source

fn unwrap(self) -> f64

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FloatConstraint for f64

source§

fn get_f64(&self) -> f64

source§

fn constraint(&self) -> bool

Implementors§