@@ -159,11 +159,15 @@ pub type MatrixCross<T, R1, C1, R2, C2> =
159159#[ cfg_attr(
160160 feature = "rkyv-serialize-no-std" ,
161161 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 ) ,
163165 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 ,
165169 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 ,
167171 )
168172 )
169173) ]
@@ -203,7 +207,6 @@ pub struct Matrix<T, R, C, S> {
203207 // of the `RawStorage` trait. However, because we don't have
204208 // specialization, this is not possible because these `T, R, C`
205209 // allows us to desambiguate a lot of configurations.
206- #[ cfg_attr( feature = "rkyv-serialize-no-std" , rkyv( with = CustomPhantom <( T :: Archived , R , C ) >) ) ]
207210 _phantoms : PhantomData < ( T , R , C ) > ,
208211}
209212
0 commit comments