总结说明(Summary)Rust ref 和 & 使用详解On this pageRust ref 和 & 使用详解1. ref和&都是用来定义指针 先看下面的代码: fn main() { let i = 1; let l = &i; let ref j = i; println!("{} {}", l, j)}