FloatConstraint

Trait FloatConstraint 

Source
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

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 FloatConstraint for f64

Source§

fn get_f64(&self) -> f64

Source§

fn constraint(&self) -> bool

Implementors§