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, 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,