Function pin_init::new_box [−][src]
pub fn new_box<T, E, F>(f: F) -> Result<Pin<Box<T>>, E> where
F: for<'a> FnOnce(PinInit<'a, T>) -> PinInitResult<'a, T, E>,
This is supported on crate feature
alloc
only.Expand description
Create a new Box
and pin-initialize it.