Advertisement · 728 × 90
#
Hashtag
#RustPerformance
Advertisement · 728 × 90
Preview
EuroRust 2025 – October 9 & 10, Paris & online EuroRust is a 2 day conference for the European Rust community – October 9 & 10, 2025 – in Paris & online

Want to see who else is supporting EuroRust this year?

Join the party as partners ➡️ eurorust.eu?utm_source=b...

#RustLang #RustConference #EuroRust25 #CodSpeed #RustPerformance

0 0 0 0
println!("Size of i32: {}", std::mem::size_of::<i32>()); //output: Size of i32: 4 println!("Size of i64: {}", std::mem::size_of::<i64>()); //output: Size of i64: 8 println!("Size of String: {}", std::mem::size_of::<String>()); //output: Size of String: 24

println!("Size of i32: {}", std::mem::size_of::<i32>()); //output: Size of i32: 4 println!("Size of i64: {}", std::mem::size_of::<i64>()); //output: Size of i64: 8 println!("Size of String: {}", std::mem::size_of::<String>()); //output: Size of String: 24

🔍 #Rustlang Tip: Use std::mem::size_of::<T>() to check the size of types at compile-time.

#RustPerformance #Rust30by30 #Day17

0 0 0 0