Function pin_init::new_rc [−][src]
pub fn new_rc<T, E, F>(f: F) -> Result<Pin<Rc<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 Rc
and pin-initialize it.