@@ -25,10 +25,10 @@ pub trait SystemInput: Sized {
25
25
type Inner < ' i > ;
26
26
27
27
/// Converts a [`SystemInput::Param`] into a [`SystemInput::Inner`].
28
- fn into_inner ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > ;
28
+ fn unwrap ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > ;
29
29
30
30
/// Converts a [`SystemInput::Inner`] into a [`SystemInput::Param`].
31
- fn into_param ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > ;
31
+ fn wrap ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > ;
32
32
}
33
33
34
34
/// Shorthand way to get the [`System::In`] for a [`System`] as a [`SystemInput::Inner`].
@@ -39,9 +39,9 @@ impl SystemInput for () {
39
39
type Param < ' i > = ( ) ;
40
40
type Inner < ' i > = ( ) ;
41
41
42
- fn into_inner ( _this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > { }
42
+ fn unwrap ( _this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > { }
43
43
44
- fn into_param ( _this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > { }
44
+ fn wrap ( _this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > { }
45
45
}
46
46
47
47
/// Wrapper type to mark a [`SystemParam`] as an input.
@@ -78,11 +78,11 @@ impl<T: 'static> SystemInput for In<T> {
78
78
type Param < ' i > = In < T > ;
79
79
type Inner < ' i > = T ;
80
80
81
- fn into_inner ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
81
+ fn unwrap ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
82
82
this. 0
83
83
}
84
84
85
- fn into_param ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
85
+ fn wrap ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
86
86
In ( this)
87
87
}
88
88
}
@@ -138,11 +138,11 @@ impl<T: ?Sized + 'static> SystemInput for InRef<'_, T> {
138
138
type Param < ' i > = InRef < ' i , T > ;
139
139
type Inner < ' i > = & ' i T ;
140
140
141
- fn into_inner ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
141
+ fn unwrap ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
142
142
this. 0
143
143
}
144
144
145
- fn into_param ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
145
+ fn wrap ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
146
146
InRef ( this)
147
147
}
148
148
}
@@ -188,11 +188,11 @@ impl<T: ?Sized + 'static> SystemInput for InMut<'_, T> {
188
188
type Param < ' i > = InMut < ' i , T > ;
189
189
type Inner < ' i > = & ' i mut T ;
190
190
191
- fn into_inner ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
191
+ fn unwrap ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
192
192
this. 0
193
193
}
194
194
195
- fn into_param ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
195
+ fn wrap ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
196
196
InMut ( this)
197
197
}
198
198
}
@@ -218,11 +218,11 @@ impl<E: 'static, B: Bundle> SystemInput for Trigger<'_, E, B> {
218
218
type Param < ' i > = Trigger < ' i , E , B > ;
219
219
type Inner < ' i > = Trigger < ' i , E , B > ;
220
220
221
- fn into_inner ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
221
+ fn unwrap ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
222
222
this
223
223
}
224
224
225
- fn into_param ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
225
+ fn wrap ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
226
226
this
227
227
}
228
228
}
@@ -241,11 +241,11 @@ impl<'a, I: SystemInput> SystemInput for StaticSystemInput<'a, I> {
241
241
type Param < ' i > = StaticSystemInput < ' i , I > ;
242
242
type Inner < ' i > = I :: Inner < ' i > ;
243
243
244
- fn into_inner ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
244
+ fn unwrap ( this : Self :: Param < ' _ > ) -> Self :: Inner < ' _ > {
245
245
this. 0
246
246
}
247
247
248
- fn into_param ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
248
+ fn wrap ( this : Self :: Inner < ' _ > ) -> Self :: Param < ' _ > {
249
249
StaticSystemInput ( this)
250
250
}
251
251
}
0 commit comments