diff --git a/src/lib.rs b/src/lib.rs index 9cc84bd..f61fa74 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -560,6 +560,14 @@ where } } +/// SAFETY: `Array` is a `repr(transparent)` newtype for `[T; N]`, so as long as `T: Send` it should +/// also be `Send`. +unsafe impl Send for Array where T: Send {} + +/// SAFETY: `Array` is a `repr(transparent)` newtype for `[T; N]`, so as long as `T: Sync` it should +/// also be `Sync`. +unsafe impl Sync for Array where T: Sync {} + impl<'a, T, U> TryFrom<&'a [T]> for Array where Self: Clone,