You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A type needs temporal mutable field when it is participating in a reference cycle with the other type.
structA{mutable_field:Option<Weak<Box<B>>>,}structB{cycle:Rc<Box<A>>}letmut a = Rc::new(Box::new(A{mutable_field:None}));let b = Rc::new(Box::new(B{cycle: a }));
a.mutable_field = Some(b.downgrade());
Previously, The Timer was like B. But it should be changed to be like A
Activity