From 46c62712868349a6f6efb71199d63a179372dea1 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 16 Nov 2023 18:40:34 -0800 Subject: [PATCH] compiler nits --- src/model_physics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index 553e5b6..295f0bb 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -11,7 +11,7 @@ impl EdgeId{ } } pub trait DirectedEdge{ - type UndirectedEdge; + type UndirectedEdge:Copy; fn as_undirected(&self)->Self::UndirectedEdge; fn parity(&self)->bool; } @@ -298,7 +298,7 @@ impl MeshQuery for TransformedMesh<'_>{ //(edge,edge) //(vertex,face) #[derive(Clone,Copy)] -enum MinkowskiVert{ +pub enum MinkowskiVert{ VertVert(VertId,VertId), } #[derive(Clone,Copy)] @@ -308,7 +308,7 @@ pub enum MinkowskiEdge{ //EdgeEdge when edges are parallel } #[derive(Clone,Copy)] -enum MinkowskiDirectedEdge{ +pub enum MinkowskiDirectedEdge{ VertEdge(VertId,DirectedEdgeId), EdgeVert(DirectedEdgeId,VertId), //EdgeEdge when edges are parallel