@@ -45,6 +45,7 @@ impl<T> Poll<T> {
45
45
/// assert_eq!(poll_some_len, Poll::Ready(13));
46
46
/// ```
47
47
#[ stable( feature = "futures_api" , since = "1.36.0" ) ]
48
+ #[ inline]
48
49
pub fn map < U , F > ( self , f : F ) -> Poll < U >
49
50
where
50
51
F : FnOnce ( T ) -> U ,
@@ -144,6 +145,7 @@ impl<T, E> Poll<Result<T, E>> {
144
145
/// assert_eq!(squared, Poll::Ready(Ok(144)));
145
146
/// ```
146
147
#[ stable( feature = "futures_api" , since = "1.36.0" ) ]
148
+ #[ inline]
147
149
pub fn map_ok < U , F > ( self , f : F ) -> Poll < Result < U , E > >
148
150
where
149
151
F : FnOnce ( T ) -> U ,
@@ -171,6 +173,7 @@ impl<T, E> Poll<Result<T, E>> {
171
173
/// assert_eq!(res, Poll::Ready(Err(0)));
172
174
/// ```
173
175
#[ stable( feature = "futures_api" , since = "1.36.0" ) ]
176
+ #[ inline]
174
177
pub fn map_err < U , F > ( self , f : F ) -> Poll < Result < T , U > >
175
178
where
176
179
F : FnOnce ( E ) -> U ,
@@ -199,6 +202,7 @@ impl<T, E> Poll<Option<Result<T, E>>> {
199
202
/// assert_eq!(squared, Poll::Ready(Some(Ok(144))));
200
203
/// ```
201
204
#[ stable( feature = "poll_map" , since = "1.51.0" ) ]
205
+ #[ inline]
202
206
pub fn map_ok < U , F > ( self , f : F ) -> Poll < Option < Result < U , E > > >
203
207
where
204
208
F : FnOnce ( T ) -> U ,
@@ -228,6 +232,7 @@ impl<T, E> Poll<Option<Result<T, E>>> {
228
232
/// assert_eq!(res, Poll::Ready(Some(Err(0))));
229
233
/// ```
230
234
#[ stable( feature = "poll_map" , since = "1.51.0" ) ]
235
+ #[ inline]
231
236
pub fn map_err < U , F > ( self , f : F ) -> Poll < Option < Result < T , U > > >
232
237
where
233
238
F : FnOnce ( E ) -> U ,
0 commit comments