rapl/
helpers.rs

1use std::ops;
2
3pub(crate) fn multiply_list<T>(list: &[T], init: T) -> T
4where
5    T: ops::MulAssign + Copy,
6{
7    let mut result: T = init;
8    for x in list {
9        result *= *x
10    }
11    result
12}