Feature gate: #![feature(pin_macro)]
This is a tracking issue for core::pin::pin!, which allows pinning values to the stack / local scope.
Public API
// core::pin
/// API: `fn pin<T>($value: T) -> Pin<&'local mut T>`
pub macro pin($value:expr $(,)?) {
…
}
Steps / History
(un)Resolved Questions
Feature gate:
#![feature(pin_macro)]This is a tracking issue for
core::pin::pin!, which allows pinning values to the stack / local scope.Public API
Steps / History
pin!-ning macro tocore::pin. #93176::{core,std}::pin::pin!#103800(un)Resolved Questions
Should it be named
pin_mut!instead, and have apin_ref!counterpart? (cc @cramertj's Add a stack-pin!-ning macro tocore::pin. #93176 (comment))I claim this has been deemed resolved by this conclusion