FracApprox

Trait FracApprox 

Source
pub trait FracApprox<F>: Sized {
    // Required methods
    fn approx(self, pred: F) -> [ApproxBound<Fraction<Self>>; 2];
    fn approx_iter(self, pred: F) -> SbTreeUnsigned<Self, F> ;
}

Required Methods§

Source

fn approx(self, pred: F) -> [ApproxBound<Fraction<Self>>; 2]

Source

fn approx_iter(self, pred: F) -> SbTreeUnsigned<Self, F>

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<I: SbUnsignedInt, F> FracApprox<F> for I
where for<'a> &'a I: Add<&'a I, Output = I> + Sub<&'a I, Output = I> + Mul<&'a I, Output = I> + Div<&'a I, Output = I>, F: FnMut(&Fraction<I>) -> bool,