src/sets.rs

branch
dev
changeset 155
45d03cf92c23
parent 133
2b13f8a0c8ba
child 163
b4a47e8e80d1
--- a/src/sets.rs	Mon Sep 01 23:08:27 2025 -0500
+++ b/src/sets.rs	Tue Sep 02 00:05:29 2025 -0500
@@ -3,7 +3,7 @@
 */
 
 use crate::euclidean::Euclidean;
-use crate::instance::{Instance, Space};
+use crate::instance::{BasicDecomposition, Instance, Space};
 use crate::loc::Loc;
 use crate::types::*;
 use serde::Serialize;
@@ -51,7 +51,7 @@
         impl<U,Idx> Set<U> for $range<Idx>
         where
             Idx : PartialOrd<U>,
-            U : PartialOrd<Idx> + Space,
+            U : PartialOrd<Idx> + Space<Decomp=BasicDecomposition> + Clone,
             Idx : PartialOrd
         {
             #[inline]
@@ -85,10 +85,7 @@
 {
     #[inline]
     pub fn new(orthogonal: A, offset: F) -> Self {
-        Halfspace {
-            orthogonal: orthogonal,
-            offset: offset,
-        }
+        Halfspace { orthogonal: orthogonal, offset: offset }
     }
 }
 

mercurial