Skip to content

Commit 58bd478

Browse files
committed
Clarify RcArray impls
1 parent 839a287 commit 58bd478

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parallel/src/into_impls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ impl<'a, A, D> IntoParallelIterator for &'a Array<A, D>
1414
}
1515
}
1616

17+
// This is allowed: goes through `.view()`
1718
impl<'a, A, D> IntoParallelIterator for &'a RcArray<A, D>
1819
where D: Dimension,
1920
A: Sync
@@ -36,6 +37,7 @@ impl<'a, A, D> IntoParallelIterator for &'a mut Array<A, D>
3637
}
3738
}
3839

40+
// This is allowed: goes through `.view_mut()`, which is unique access
3941
impl<'a, A, D> IntoParallelIterator for &'a mut RcArray<A, D>
4042
where D: Dimension,
4143
A: Sync + Send + Clone,

0 commit comments

Comments
 (0)