We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db592f4 commit 224757fCopy full SHA for 224757f
src/libcore/option.rs
@@ -290,6 +290,8 @@ impl<T> Option<T> {
290
291
292
/// Converts from [`Pin`]`<&Option<T>>` to `Option<`[`Pin`]`<&T>>`.
293
+ ///
294
+ /// [`Pin`]: ../pin/struct.Pin.html
295
#[inline]
296
#[stable(feature = "pin", since = "1.33.0")]
297
pub fn as_pin_ref<'a>(self: Pin<&'a Option<T>>) -> Option<Pin<&'a T>> {
@@ -299,6 +301,8 @@ impl<T> Option<T> {
299
301
}
300
302
303
/// Converts from [`Pin`]`<&mut Option<T>>` to `Option<`[`Pin`]`<&mut T>>`.
304
305
306
307
308
pub fn as_pin_mut<'a>(self: Pin<&'a mut Option<T>>) -> Option<Pin<&'a mut T>> {
0 commit comments