Function moveref::new::by_raw

source ·
pub unsafe fn by_raw<T, F>(initializer: F) -> impl New<Output = T>
where F: FnOnce(Pin<&mut MaybeUninit<T>>),
Expand description

Constructs a New value using a thunk which initializes its data into some pinned, uninitialized memory.

§Safety

  • initializer must satisfy the same safety requirements as New::new()