diff --git a/src/misc.rs b/src/misc.rs index 115c761..a0deefe 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -20,6 +20,7 @@ pub struct SteppedVector<'a> { impl<'a> SteppedVector<'a> { /// Returns `Option` with index of element with value `x`. and `None` if `x` does not exist in `data` + #[inline] pub fn get_index(&self, x: f64) -> Option { debug_assert!(!x.is_nan()); debug_assert!(self.step > 0.0);