In Rust, why does size_of_val() for a 10 character string return 24 bytes?
Channel:
Subscribers:
4,120
Published on ● Video Link: https://www.youtube.com/watch?v=-NIXfWzlybA
In Rust, why does size_of_val() for a 10 character string return 24 bytes?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/123671/mikemaccana)mikemaccana
(stackoverflow.com/users/22045587/patientpenguin)PatientPenguin
A special thanks goes out to the (https://stackoverflow.com/questions/76929841/in-rust-why-does-size-of-val-for-a-10-character-string-return-24-bytes)Stackexchange community
I wish you all a wonderful day! Stay safe :)
rust
Other Videos By Peter Schneider
Tags:
rust