Skip to main content

LiChaoLine

Trait LiChaoLine 

Source
pub trait LiChaoLine<X>: Copy {
    type Output: Bounded + Copy + Ord;

    // Required methods
    fn infinity() -> Self;
    fn evaluate(&self, x: X) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn infinity() -> Self

Source

fn evaluate(&self, x: X) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<X, Y> LiChaoLine<X> for (X, Y)
where X: Copy + Into<Y> + Zero, Y: Bounded + Copy + Ord + Add<Output = Y> + Mul<Output = Y>,

Source§

type Output = Y

Source§

fn infinity() -> Self

Source§

fn evaluate(&self, x: X) -> Self::Output

Implementors§