소유권
//컴파일 시 크기를 알 수 없는(동적할당)을 사용하는 변수의 데이터 대입법 /*fn main() { let s1 = String::from("hello"); let s2 = s1; //이렇게 하면 s1은 사용할 수 없을것이다 그 이유는 copy를 한게아니라 //move를 한것이기 때문이다. println!("{}, world!", s1); println!("{}, world!",s2); }*/ /* //같이 사용하고 싶다면 클론 함수를 사용하여 복사를 할 수 있다. fn main() { let s1 = String::from("hello"); let s2 = s1.clone(); println!("s1 = {}, s2 = {}",s1,s2); } */ /* //스택 전용 데이터 : 복사(copy) fn..