@@ -159,11 +159,15 @@ pub type MatrixCross<T, R1, C1, R2, C2> =
159
159
#[ cfg_attr(
160
160
feature = "rkyv-serialize-no-std" ,
161
161
derive( Archive , rkyv:: Serialize , rkyv:: Deserialize ) ,
162
- rkyv( as = Matrix <T :: Archived , R , C , S :: Archived >,
162
+ rkyv(
163
+ compare( PartialEq , PartialOrd ) ,
164
+ derive( Debug ) ,
163
165
archive_bounds(
164
- T : Archive ,
166
+ <S as Archive >:: Archived : core:: fmt:: Debug ,
167
+ <PhantomData <( T , R , C ) > as Archive >:: Archived : core:: fmt:: Debug ,
168
+ T : PartialEq ,
165
169
S : Archive ,
166
- With < PhantomData < ( T , R , C ) > , CustomPhantom < ( Archived < T > , R , C ) >> : Archive < Archived = PhantomData < ( Archived < T > , R , C ) >>
170
+ S : core :: fmt :: Debug ,
167
171
)
168
172
)
169
173
) ]
@@ -203,7 +207,6 @@ pub struct Matrix<T, R, C, S> {
203
207
// of the `RawStorage` trait. However, because we don't have
204
208
// specialization, this is not possible because these `T, R, C`
205
209
// allows us to desambiguate a lot of configurations.
206
- #[ cfg_attr( feature = "rkyv-serialize-no-std" , rkyv( with = CustomPhantom <( T :: Archived , R , C ) >) ) ]
207
210
_phantoms : PhantomData < ( T , R , C ) > ,
208
211
}
209
212
0 commit comments