Rust ではRc<RefCell<T>>が使われることが多い。 ... use std::cell::RefCell; fn append(data:&RefCell<Vec<i32>>){ data.borrow_mut().push(4); } fn ...
確定! 回上一頁