코딩Coding/★Rust★기초★Syntax
-
-
What does the ampersand(=&) mean in a Rust type?코딩Coding/★Rust★기초★Syntax 2020. 9. 7. 21:34
stackoverflow.com/questions/31908636/what-does-the-ampersand-mean-in-a-rust-type What does the ampersand mean in a Rust type? I've seen this code in the Rust documentation: fn eat(&self) { println!("{} is done eating.", self.name); } what does the & in &self mean? stackoverflow.com rust에서 References를 &표시합니다.