@@ -1169,16 +1169,6 @@ impl<T: Deref, E> Result<T, E> {
1169
1169
}
1170
1170
}
1171
1171
1172
- #[ unstable( feature = "inner_deref" , issue = "50264" ) ]
1173
- impl < T , E : Deref > Result < T , E > {
1174
- /// Converts from `Result<T, E>` (or `&Result<T, E>`) to `Result<&T, &<E as Deref>::Target>`.
1175
- ///
1176
- /// Coerces the [`Err`] variant of the original [`Result`] via [`Deref`](crate::ops::Deref)
1177
- /// and returns the new [`Result`].
1178
- pub fn as_deref_err ( & self ) -> Result < & T , & E :: Target > {
1179
- self . as_ref ( ) . map_err ( |e| e. deref ( ) )
1180
- }
1181
- }
1182
1172
1183
1173
#[ unstable( feature = "inner_deref" , issue = "50264" ) ]
1184
1174
impl < T : DerefMut , E > Result < T , E > {
@@ -1206,17 +1196,6 @@ impl<T: DerefMut, E> Result<T, E> {
1206
1196
}
1207
1197
}
1208
1198
1209
- #[ unstable( feature = "inner_deref" , issue = "50264" ) ]
1210
- impl < T , E : DerefMut > Result < T , E > {
1211
- /// Converts from `Result<T, E>` (or `&mut Result<T, E>`) to `Result<&mut T, &mut <E as DerefMut>::Target>`.
1212
- ///
1213
- /// Coerces the [`Err`] variant of the original [`Result`] via [`DerefMut`](crate::ops::DerefMut)
1214
- /// and returns the new [`Result`].
1215
- pub fn as_deref_mut_err ( & mut self ) -> Result < & mut T , & mut E :: Target > {
1216
- self . as_mut ( ) . map_err ( |e| e. deref_mut ( ) )
1217
- }
1218
- }
1219
-
1220
1199
impl < T , E > Result < Option < T > , E > {
1221
1200
/// Transposes a `Result` of an `Option` into an `Option` of a `Result`.
1222
1201
///
0 commit comments