2024-07-13 17:05

Rust : 참조 & 역참조 - #Ref #DeRef

맨날 아리송하게 기억하는 참조 & 역참조 간단하게 String 을 활용해서 참조 & 역참조를 비교해보자. fn main() { let s1 = String::from("hello"); let s2 = s1;  // s1의 소유...

댓글