@@ -85,7 +85,7 @@ pub struct FunctionCurve<T, F> {
85
85
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
86
86
pub ( crate ) f : F ,
87
87
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
88
- pub ( crate ) _phantom : PhantomData < T > ,
88
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
89
89
}
90
90
91
91
impl < T , F > Debug for FunctionCurve < T , F > {
@@ -186,7 +186,7 @@ pub struct MapCurve<S, T, C, F> {
186
186
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
187
187
pub ( crate ) f : F ,
188
188
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
189
- pub ( crate ) _phantom : PhantomData < ( S , T ) > ,
189
+ pub ( crate ) _phantom : PhantomData < ( fn ( ) -> S , fn ( S ) -> T ) > ,
190
190
}
191
191
192
192
impl < S , T , C , F > Debug for MapCurve < S , T , C , F >
@@ -283,7 +283,7 @@ pub struct ReparamCurve<T, C, F> {
283
283
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
284
284
pub ( crate ) f : F ,
285
285
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
286
- pub ( crate ) _phantom : PhantomData < T > ,
286
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
287
287
}
288
288
289
289
impl < T , C , F > Debug for ReparamCurve < T , C , F >
@@ -377,7 +377,7 @@ pub struct LinearReparamCurve<T, C> {
377
377
/// Invariants: This interval must always be bounded.
378
378
pub ( crate ) new_domain : Interval ,
379
379
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
380
- pub ( crate ) _phantom : PhantomData < T > ,
380
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
381
381
}
382
382
383
383
impl < T , C > Curve < T > for LinearReparamCurve < T , C >
@@ -410,7 +410,7 @@ pub struct CurveReparamCurve<T, C, D> {
410
410
pub ( crate ) base : C ,
411
411
pub ( crate ) reparam_curve : D ,
412
412
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
413
- pub ( crate ) _phantom : PhantomData < T > ,
413
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
414
414
}
415
415
416
416
impl < T , C , D > Curve < T > for CurveReparamCurve < T , C , D >
@@ -442,7 +442,7 @@ where
442
442
pub struct GraphCurve < T , C > {
443
443
pub ( crate ) base : C ,
444
444
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
445
- pub ( crate ) _phantom : PhantomData < T > ,
445
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
446
446
}
447
447
448
448
impl < T , C > Curve < ( f32 , T ) > for GraphCurve < T , C >
@@ -474,7 +474,7 @@ pub struct ZipCurve<S, T, C, D> {
474
474
pub ( crate ) first : C ,
475
475
pub ( crate ) second : D ,
476
476
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
477
- pub ( crate ) _phantom : PhantomData < ( S , T ) > ,
477
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> ( S , T ) > ,
478
478
}
479
479
480
480
impl < S , T , C , D > Curve < ( S , T ) > for ZipCurve < S , T , C , D >
@@ -514,7 +514,7 @@ pub struct ChainCurve<T, C, D> {
514
514
pub ( crate ) first : C ,
515
515
pub ( crate ) second : D ,
516
516
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
517
- pub ( crate ) _phantom : PhantomData < T > ,
517
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
518
518
}
519
519
520
520
impl < T , C , D > Curve < T > for ChainCurve < T , C , D >
@@ -563,7 +563,7 @@ where
563
563
pub struct ReverseCurve < T , C > {
564
564
pub ( crate ) curve : C ,
565
565
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
566
- pub ( crate ) _phantom : PhantomData < T > ,
566
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
567
567
}
568
568
569
569
impl < T , C > Curve < T > for ReverseCurve < T , C >
@@ -605,7 +605,7 @@ pub struct RepeatCurve<T, C> {
605
605
pub ( crate ) domain : Interval ,
606
606
pub ( crate ) curve : C ,
607
607
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
608
- pub ( crate ) _phantom : PhantomData < T > ,
608
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
609
609
}
610
610
611
611
impl < T , C > Curve < T > for RepeatCurve < T , C >
@@ -653,7 +653,7 @@ where
653
653
pub struct ForeverCurve < T , C > {
654
654
pub ( crate ) curve : C ,
655
655
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
656
- pub ( crate ) _phantom : PhantomData < T > ,
656
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
657
657
}
658
658
659
659
impl < T , C > Curve < T > for ForeverCurve < T , C >
@@ -697,7 +697,7 @@ where
697
697
pub struct PingPongCurve < T , C > {
698
698
pub ( crate ) curve : C ,
699
699
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
700
- pub ( crate ) _phantom : PhantomData < T > ,
700
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
701
701
}
702
702
703
703
impl < T , C > Curve < T > for PingPongCurve < T , C >
@@ -754,7 +754,7 @@ pub struct ContinuationCurve<T, C, D> {
754
754
// cache the offset in the curve directly to prevent triple sampling for every sample we make
755
755
pub ( crate ) offset : T ,
756
756
#[ cfg_attr( feature = "bevy_reflect" , reflect( ignore) ) ]
757
- pub ( crate ) _phantom : PhantomData < T > ,
757
+ pub ( crate ) _phantom : PhantomData < fn ( ) -> T > ,
758
758
}
759
759
760
760
impl < T , C , D > Curve < T > for ContinuationCurve < T , C , D >
0 commit comments