This commit is contained in:
geo-ant 2022-10-24 08:08:20 +02:00 committed by Sébastien Crozet
parent f6461d3862
commit 8638b796ac
1 changed files with 23 additions and 17 deletions

View File

@ -404,7 +404,11 @@ pub struct ColumnIterMut<'a, T, R: Dim, C: Dim, S: RawStorageMut<T, R, C>> {
impl<'a, T, R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>> ColumnIterMut<'a, T, R, C, S> {
pub(crate) fn new(mat: &'a mut Matrix<T, R, C, S>) -> Self {
let range = 0..mat.ncols();
ColumnIterMut { mat, range, phantom: Default::default() }
ColumnIterMut {
mat,
range,
phantom: Default::default(),
}
}
fn ncols(&self) -> usize {
@ -498,4 +502,6 @@ for ColumnIterMut<'a, T, R, C, S>
}
unsafe impl<'a, T: Scalar, R: Dim, C: Dim, S: 'a + RawStorageMut<T, R, C>> Send
for ColumnIterMut<'a, T, R, C, S> {}
for ColumnIterMut<'a, T, R, C, S>
{
}