1 2 3 4 5 6 7 8
use std::{ cell::RefCell, rc::Rc, }; pub(crate) fn new_rc_refcell<T>(value: T) -> Rc<RefCell<T>> { Rc::new(RefCell::new(value)) }