src/nalgebra_support.rs

branch
dev
changeset 166
20fa28637737
parent 165
478c23ce7cef
child 167
effb80efba09
equal deleted inserted replaced
165:478c23ce7cef 166:20fa28637737
46 46
47 fn cow_owned<'b>(self) -> MyCow<'b, Self::OwnedVariant> 47 fn cow_owned<'b>(self) -> MyCow<'b, Self::OwnedVariant>
48 where 48 where
49 Self: 'b, 49 Self: 'b,
50 { 50 {
51 todo!() 51 MyCow::Owned(self.into_owned())
52 //MyCow::owned(self.into_owned()) 52 }
53
54 fn ref_cow_owned<'b>(&'b self) -> MyCow<'b, Self::OwnedVariant>
55 where
56 Self: 'b,
57 {
58 MyCow::Owned(self.clone_owned())
53 } 59 }
54 } 60 }
55 61
56 trait StridesOk<E, N, M = U1, S = <DefaultAllocator as Allocator<N, M>>::Buffer<E>>: 62 trait StridesOk<E, N, M = U1, S = <DefaultAllocator as Allocator<N, M>>::Buffer<E>>:
57 DimEq<Dyn, S::RStride> 63 DimEq<Dyn, S::RStride>

mercurial