Trait math::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>

Object Safety§

This trait is not object safe.

Implementors§

source§

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