Formula

Trait Formula 

Source
pub trait Formula {
    // Required methods
    fn coalesce(self, other: Self) -> Self;
    fn min(self, other: Self) -> Self;
    fn max(self, other: Self) -> Self;
}
Expand description

A trait with methods for combining formulas.

Required Methods§

Source

fn coalesce(self, other: Self) -> Self

Source

fn min(self, other: Self) -> Self

Source

fn max(self, other: Self) -> Self

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.

Implementors§

Source§

impl<T> Formula for T
where T: From<Expr>, Expr: From<T>,

Blanket implementation of the Formula trait for any type that can be converted to and from Expr.