[][src]Function tao_of_rust::ch04::raii::smart_pointer

pub fn smart_pointer()

智能指针:

Base usage: 智能指针示意

fn main() {
    let s = String::from("hello");
    // let deref_s : str = *s;
    let v = vec![1,2,3];
    // let deref_v: [u32] = *v;
}Run