Learn Rust - Auto-dereferencing. ... "Hello world".to_string(); let rc = Rc::new(s); // This works because Rc<T> impls ... fn work_on_bytes(slice: &[u8]) {}.
確定! 回上一頁