src/direct_product.rs

branch
dev
changeset 166
20fa28637737
parent 164
fd9dba51afd3
child 168
93daa824c04a
equal deleted inserted replaced
165:478c23ce7cef 166:20fa28637737
284 fn cow_owned<'b>(self) -> MyCow<'b, Self::OwnedVariant> 284 fn cow_owned<'b>(self) -> MyCow<'b, Self::OwnedVariant>
285 where 285 where
286 Self: 'b, 286 Self: 'b,
287 { 287 {
288 MyCow::Owned(self.into_owned()) 288 MyCow::Owned(self.into_owned())
289 }
290
291 #[inline]
292 fn ref_cow_owned<'b>(&'b self) -> MyCow<'b, Self::OwnedVariant>
293 where
294 Self: 'b,
295 {
296 MyCow::Owned(self.clone_owned())
289 } 297 }
290 } 298 }
291 299
292 /// We only support 'closed' `Euclidean` `Pair`s, as more general ones cause 300 /// We only support 'closed' `Euclidean` `Pair`s, as more general ones cause
293 /// compiler overflows. 301 /// compiler overflows.

mercurial