fn fill_marks_between(out: &mut Vec<GridMark>, step_size: f64, (min, max): (f64, f64)) {
    assert!(max > min);
    let first = (min / step_size).ceil() as i64;
    let last = (max / step_size).ceil() as i64;

    let marks_iter = (first..last).map(|i| {
        let value = (i as f64) * step_size;
        GridMark { value, step_size }
    });
    out.extend(marks_iter);
}
/// Fill in all values between [min, max] which are a multiple of `step_size`
Fill in all values between [min, max] which are a multiple of `step_size`
Fill in all values between [ min max ] which are a multiple of ` step_size `
fn fill_marks_between(out: &mut Vec<GridMark>, step_size: f64, (min, max): (f64, f64)) {
    assert!(max > min);
    let first = (min / step_size).ceil() as i64;
    let last = (max / step_size).ceil() as i64;
    let marks_iter = (first..last).map(|i| {
        let value = (i as f64) * step_size;
        GridMark { value, step_size }
    });
    out.extend(marks_iter);
}
fn fill_marks_between ( out : & mut Vec < GridMark > , step_size : f64 , ( min , max ) : ( f64 , f64 ) ) { assert ! ( max min ) ; let first = ( min / step_size ) . ceil ( ) as i64 ; let last = ( max / step_size ) . ceil ( ) as i64 ; let marks_iter = ( first .. last ) . map ( | i | { let value = ( i as f64 ) * step_size ; GridMark { value , step_size } } ) ; out . extend ( marks_iter ) ; }
Fill in all values between [min, max] which are a multiple of `step_size`
Fill in all values between [ min max ] which are a multiple of ` step_size `
out
&mut Vec<GridMark>
step_size
(f64, f64)
out
&mut Vec<GridMark>
step_size
(f64, f64)