this post was submitted on 25 Jan 2024
0 points (NaN% liked)

Andy Balaam's programming lectures

0 readers
1 users here now

Talks about Scheme Lisp, Raspberry Pi, Rust, Python, JavaScript, Java (even Ant!). So long as it's programming, I'm happy!

founded 2 years ago
0
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 

What a String is in Rust, and how they differ from &str. Strings are resizeable arrays of bytes that are guaranteed to be in UTF-8 format. &strs are references to chunks of bytes that are also guaranteed to be in UTF-8 format.

If you want to learn more about UTF-8 and character encodings, check out my video Interesting Characters.

Links:

Rust 101 is a series of videos explaining how to write programs in Rust. The course materials for this series are developed by tweede golf. You can find more information at https://github.com/tweedegolf/101-rs and you can sponsor the work at https://github.com/sponsors/tweedegolf . They are released under the Creative Commons Attribution Share Alike 4.0 International license.

This series of videos is copyright 2024 Andy Balaam and the tweede golf contributors and is released under the Creative Commons Attribution Share Alike 4.0 International license.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here