We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a176a87 commit 1289db6Copy full SHA for 1289db6
src/lib.rs
@@ -500,6 +500,11 @@ pub struct IntoIter<T, const N: usize> {
500
_marker: PhantomData<T>,
501
}
502
503
+// SAFETY: IntoIter has unique ownership of its contents. Sending (or sharing) an `IntoIter<T, N>`
504
+// is equivalent to sending (or sharing) a `SmallVec<T, N>`.
505
+unsafe impl<T, const N: usize> Send for IntoIter<T, N> where T: Send {}
506
+unsafe impl<T, const N: usize> Sync for IntoIter<T, N> where T: Sync {}
507
+
508
impl<T, const N: usize> IntoIter<T, N> {
509
#[inline]
510
const fn is_zst() -> bool {
0 commit comments