complete version
This commit is contained in:
6
box-str-program/src/main.rs
Normal file
6
box-str-program/src/main.rs
Normal file
@ -0,0 +1,6 @@
|
||||
fn main() {
|
||||
let boxed_str: Box<str> = "hello".into();
|
||||
|
||||
println!("boxed_str: {}", boxed_str);
|
||||
println!("size of boxed_str on stack: {}", std::mem::size_of_val(&boxed_str));
|
||||
}
|
Reference in New Issue
Block a user