-
2 votesanswersviews
如何返回一个引用RefCell内部内容的迭代器?
我试图创建一个返回了这是一个 RefCell 内盒装的 HashMap 值是迭代器的方法,但我在这里 Ref 通过 RefCell::borrow 没有按't live long enough for iterator to be returned from the method. Here'是我的代码返回了一个错误: use std::rc::Rc; use std::cell::RefCell...