We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67c38d9 + 224757f commit 6b6858dCopy full SHA for 6b6858d
src/libcore/option.rs
@@ -291,6 +291,8 @@ impl<T> Option<T> {
291
292
293
/// Converts from [`Pin`]`<&Option<T>>` to `Option<`[`Pin`]`<&T>>`.
294
+ ///
295
+ /// [`Pin`]: ../pin/struct.Pin.html
296
#[inline]
297
#[stable(feature = "pin", since = "1.33.0")]
298
pub fn as_pin_ref<'a>(self: Pin<&'a Option<T>>) -> Option<Pin<&'a T>> {
@@ -300,6 +302,8 @@ impl<T> Option<T> {
300
302
}
301
303
304
/// Converts from [`Pin`]`<&mut Option<T>>` to `Option<`[`Pin`]`<&mut T>>`.
305
306
307
308
309
pub fn as_pin_mut<'a>(self: Pin<&'a mut Option<T>>) -> Option<Pin<&'a mut T>> {
0 commit comments