You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
T:DataOwned<Elem = B> + RawDataSubst<A> + 'static,// lets us introspect on the types of array representations containing different data elements
2838
+
<TasRawDataSubst<A>>::Output:RawData,// required by mapv_into()
2839
+
ArrayBase<<TasRawDataSubst<A>>::Output,D>:From<ArrayBase<S,D>>,// required by into() to convert from the DataMut array representation of S to the DataOwned array representation of T
2840
+
ArrayBase<T,D>:From<Array<B,D>>,// required by mapv()
2826
2841
{
2827
2842
if core::any::TypeId::of::<A>() == core::any::TypeId::of::<B>(){
2828
2843
// A and B are the same type.
@@ -2832,16 +2847,23 @@ where
2832
2847
// Safe because A and B are the same type.
2833
2848
unsafe{unlimited_transmute::<B,A>(b)}
2834
2849
};
2835
-
// Delegate to mapv_into() using the wrapped closure.
2836
-
// Convert output to a uniquely owned array of type Array<A, D>.
2837
-
let output = self.mapv_into(f).into_owned();
2838
-
// Change the return type from Array<A, D> to Array<B, D>.
0 commit comments