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
2610
+
<TasRawDataSubst<A>>::Output:RawData,// required by mapv_into()
2611
+
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
2612
+
ArrayBase<T,D>:From<Array<B,D>>,// required by mapv()
2598
2613
{
2599
2614
if core::any::TypeId::of::<A>() == core::any::TypeId::of::<B>(){
2600
2615
// A and B are the same type.
@@ -2604,16 +2619,23 @@ where
2604
2619
// Safe because A and B are the same type.
2605
2620
unsafe{unlimited_transmute::<B,A>(b)}
2606
2621
};
2607
-
// Delegate to mapv_into() using the wrapped closure.
2608
-
// Convert output to a uniquely owned array of type Array<A, D>.
2609
-
let output = self.mapv_into(f).into_owned();
2610
-
// Change the return type from Array<A, D> to Array<B, D>.
0 commit comments