diff --git a/src/structs/vecn.rs b/src/structs/vecn.rs index ecf41461..05689a79 100644 --- a/src/structs/vecn.rs +++ b/src/structs/vecn.rs @@ -19,6 +19,9 @@ pub struct VecN> { pub at: GenericArray } +unsafe impl> Send for VecN { +} + impl> Clone for VecN { fn clone(&self) -> VecN { VecN::new(self.at.clone()) @@ -109,4 +112,12 @@ impl> Zero for VecN { } } +#[cfg(feature="arbitrary")] +impl> Arbitrary for VecN { + #[inline] + fn arbitrary(g: &mut G) -> VecN { + (0 .. D::to_usize()).map(|_| Arbitrary::arbitrary(g)).collect() + } +} + vecn_dvec_common_impl!(VecN, D);