The canonical example is reference-counted pointer, called Rc in Rust. The following code is entirely valid: { let x1: Rc<u32> = Rc::new(1); ...
確定! 回上一頁