src/direct_product.rs

branch
dev
changeset 166
20fa28637737
parent 164
fd9dba51afd3
child 168
93daa824c04a
--- a/src/direct_product.rs	Wed Sep 03 12:55:27 2025 -0500
+++ b/src/direct_product.rs	Wed Sep 03 13:15:32 2025 -0500
@@ -287,6 +287,14 @@
     {
         MyCow::Owned(self.into_owned())
     }
+
+    #[inline]
+    fn ref_cow_owned<'b>(&'b self) -> MyCow<'b, Self::OwnedVariant>
+    where
+        Self: 'b,
+    {
+        MyCow::Owned(self.clone_owned())
+    }
 }
 
 /// We only support 'closed' `Euclidean` `Pair`s, as more general ones cause

mercurial