We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 78db333 + d288c28 commit ee90f09Copy full SHA for ee90f09
src/libcore/pin.rs
@@ -672,6 +672,7 @@ impl<'a, T: ?Sized> Pin<&'a T> {
672
#[stable(feature = "pin", since = "1.33.0")]
673
pub unsafe fn map_unchecked<U, F>(self, func: F) -> Pin<&'a U>
674
where
675
+ U: ?Sized,
676
F: FnOnce(&T) -> &U,
677
{
678
let pointer = &*self.pointer;
@@ -763,6 +764,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
763
764
765
pub unsafe fn map_unchecked_mut<U, F>(self, func: F) -> Pin<&'a mut U>
766
767
768
F: FnOnce(&mut T) -> &mut U,
769
770
let pointer = Pin::get_unchecked_mut(self);
0 commit comments