Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 279 Bytes

File metadata and controls

10 lines (7 loc) · 279 Bytes

#[allow(unused_variables)]

Deep Copy

let s1 = String::from("hello"); let s2 = s1.clone(); Println!("s1 = {} , s2 = {}", s1,s2 );

#[derive(Debut)] to print the struct{} dbg! (&rect1) or println!("{:?}",rect1). // :? debut notation meaning anything that implements debug trait