From 439322773de999ac97fca7aa7a0565d9b4ab77a4 Mon Sep 17 00:00:00 2001 From: KmolYuan Date: Wed, 15 May 2024 23:13:02 +0800 Subject: [PATCH] Add Sync + Send bounds --- src/dim.rs | 2 +- src/geo.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dim.rs b/src/dim.rs index 5d7b42d..00a4f90 100644 --- a/src/dim.rs +++ b/src/dim.rs @@ -30,7 +30,7 @@ impl Sealed for U {} /// **This trait is sealed and cannot be implemented outside of this crate.** /// The API of this trait is not public and may change in the future. #[allow(private_bounds)] -pub trait EfdDim: Sealed { +pub trait EfdDim: Sync + Send + Sealed { /// Rotation type of the dimension `D`. /// /// For the memory efficiency, the generic rotation matrix [`na::Rotation`] diff --git a/src/geo.rs b/src/geo.rs index 6dfe556..b60d95e 100644 --- a/src/geo.rs +++ b/src/geo.rs @@ -11,7 +11,9 @@ pub type GeoVar3 = GeoVar, 3>; type Sim = na::Similarity; /// Rotation hint for [`GeoVar`]. -pub trait RotHint: na::AbstractRotation + core::fmt::Debug { +pub trait RotHint: + na::AbstractRotation + Sync + Send + core::fmt::Debug +{ /// Get the rotation matrix. fn matrix(self) -> na::SMatrix; }