摘要:
避免悬垂引用 //这样写会报错fn main { let r; { let x=5; r=&x; } //`x` dropped here while still borrowed println!("r is {}",r); } 函数中的生命周期 fn longest<'a>(x:&'a str, 阅读全文
摘要:
官网 Rust 程序设计语言 (rust-lang.org) 1 安装 a (windows) 安装 c++环境 Build Tools for Visual Studio 2019. b 安装Rust https://www.rust-lang.org/tools/install c 安装vsco 阅读全文