Skip to main content

pin_new_unchecked_in_helper

Function pin_new_unchecked_in_helper 

Source
#[doc(hidden)]
pub const unsafe fn pin_new_unchecked_in_helper<'a, T>( pinned: &'a mut PinMacroHelper<T>, ) -> Pin<&'a mut T>
🔬This is a nightly-only experimental API. (pin_macro_internals)
Expand description

Helper for pin! to enforce its type signature. See https://github.com/rust-lang/rust/issues/153438.

§Safety

Calling this function has the same safety requirements as calling Pin::new_unchecked on &mut pinned.value