mathru 0.16.2

Fundamental algorithms for scientific computing in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::slice::IterMut;

pub struct MatrixIteratorMut<'a, T> {
    iter: IterMut<'a, T>,
}

impl<'a, T> MatrixIteratorMut<'a, T> {
    pub fn new(iter: IterMut<'a, T>) -> MatrixIteratorMut<'a, T> {
        MatrixIteratorMut { iter }
    }
}
impl<'a, T> Iterator for MatrixIteratorMut<'a, T> {
    type Item = &'a mut T;

    fn next(&mut self) -> Option<Self::Item> {
        self.iter.next()
    }
}