The feature gate for the issue is #![feature(arc_new_cyclic)].
Tracking the following API:
impl<T> Arc<T> {
pub fn new_cyclic(data_fn: impl FnOnce(&Weak<T>) -> T) -> Arc<T>;
}
impl<T> Rc<T> {
pub fn new_cyclic(data_fn: impl FnOnce(&Weak<T>) -> T) -> Rc<T>;
}
Steps
Unresolved Questions
The feature gate for the issue is
#![feature(arc_new_cyclic)].Tracking the following API:
Steps
Arc::new_with()function for constructing self-referential data structures #72443Arc::new_cyclic(Add Arc::new_cyclic #75505)Rc::new_cyclic(impl Rc::new_cyclic#75994)Unresolved Questions