fs2db 7.3.0

migration helper
Documentation
1
2
3
4
5
6
7
pub fn save_many<I, T, O, E>(mut inputs: I, saver: O) -> Result<u64, E>
where
    I: Iterator<Item = T>,
    O: Fn(T) -> Result<u64, E>,
{
    inputs.try_fold(0, |cnt, input| saver(input).map(|c| c + cnt))
}