Skip to content

Commit

Permalink
Add Sync + Send bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed May 15, 2024
1 parent 24689c3 commit 4393227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl<const D: usize> Sealed for U<D> {}
/// **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<const D: usize>: Sealed {
pub trait EfdDim<const D: usize>: Sync + Send + Sealed {
/// Rotation type of the dimension `D`.
///
/// For the memory efficiency, the generic rotation matrix [`na::Rotation`]
Expand Down
4 changes: 3 additions & 1 deletion src/geo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ pub type GeoVar3 = GeoVar<na::UnitQuaternion<f64>, 3>;
type Sim<R, const D: usize> = na::Similarity<f64, R, D>;

/// Rotation hint for [`GeoVar`].
pub trait RotHint<const D: usize>: na::AbstractRotation<f64, D> + core::fmt::Debug {
pub trait RotHint<const D: usize>:
na::AbstractRotation<f64, D> + Sync + Send + core::fmt::Debug
{
/// Get the rotation matrix.
fn matrix(self) -> na::SMatrix<f64, D, D>;
}
Expand Down

0 comments on commit 4393227

Please sign in to comment.