diff -r 495448cca603 -r 6aa955ad8122 src/bounds.rs --- a/src/bounds.rs Thu May 01 08:40:33 2025 -0500 +++ b/src/bounds.rs Thu May 01 13:06:58 2025 -0500 @@ -40,7 +40,7 @@ /// As an example, in the case of `A` being [`Bounds`][super::aggregator::Bounds], /// this function will return upper and lower bounds within `cube` for the mapping /// represented by `self`. - fn local_analysis(&self, cube: &Cube) -> A; + fn local_analysis(&self, cube: &Cube) -> A; } /// Trait for determining the upper and lower bounds of an float-valued [`Mapping`]. @@ -59,12 +59,12 @@ impl>> Bounded for T {} /// A [`RealMapping`] that provides rough bounds as well as minimisation and maximisation. -pub trait MinMaxMapping: RealMapping + Bounded { +pub trait MinMaxMapping: RealMapping + Bounded { /// Maximise the mapping within stated value `tolerance`. /// /// At most `max_steps` refinement steps are taken. /// Returns the approximate maximiser and the corresponding function value. - fn maximise(&mut self, tolerance: F, max_steps: usize) -> (Loc, F); + fn maximise(&mut self, tolerance: F, max_steps: usize) -> (Loc, F); /// Maximise the mapping within stated value `tolerance` subject to a lower bound. /// @@ -76,13 +76,13 @@ bound: F, tolerance: F, max_steps: usize, - ) -> Option<(Loc, F)>; + ) -> Option<(Loc, F)>; /// Minimise the mapping within stated value `tolerance`. /// /// At most `max_steps` refinement steps are taken. /// Returns the approximate minimiser and the corresponding function value. - fn minimise(&mut self, tolerance: F, max_steps: usize) -> (Loc, F); + fn minimise(&mut self, tolerance: F, max_steps: usize) -> (Loc, F); /// Minimise the mapping within stated value `tolerance` subject to a lower bound. /// @@ -94,7 +94,7 @@ bound: F, tolerance: F, max_steps: usize, - ) -> Option<(Loc, F)>; + ) -> Option<(Loc, F)>; /// Verify that the mapping has a given upper `bound` within indicated `tolerance`. ///