More links to steps in the Rust Roadmap (#5894)

More links were added to the array step in the Rust roadmap
pull/5898/head
Jhonatan Mustiola 5 months ago committed by GitHub
parent 6d983167c8
commit b1d790739f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      src/data/roadmaps/rust/content/101-language-basics/103-data-structures/103-character.md
  2. 2
      src/data/roadmaps/rust/content/101-language-basics/103-data-structures/104-tuple.md
  3. 3
      src/data/roadmaps/rust/content/101-language-basics/103-data-structures/105-array.md

@ -1,7 +1,10 @@
# Character # Character
In Rust, the `char` keyword is used to denote a character type. A `char` in Rust represents a Unicode Scalar Value, which means it can represent a lot more than just ASCII. Accented letters, Chinese/Japanese/Korean ideographs, emoji, and zero width spaces are all valid `char` Types in Rust. It uses 4 bytes to store a single character. It is defined with single quotes like `let x: char = 'z';`. In Rust, the `char` keyword is used to denote a character type. A `char` in Rust represents a **Unicode Scalar Value**, which means it can represent a lot more than just ASCII. Accented letters, Chinese/Japanese/Korean ideographs, emoji, and zero width spaces are all valid `char` Types in Rust. It occupies in memory the same size of `u32` type, that's 4 bytes (or `32bit`) to store a single character. It is defined with single quotes like `let x: char = 'z';`.
Learn more from the following links: Learn more from the following links:
- [@offcial@The char Primitive Type](https://doc.rust-lang.org/std/primitive.char.html)
- [@article@The Character Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-character-type) - [@article@The Character Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-character-type)
- [@article@Unicode Glossary - Unicode Scalar Value](https://www.unicode.org/glossary/#unicode_scalar_value)
- [@video@Char Type in Rust](https://www.youtube.com/watch?v=NZaEinuVPVg&pp=ygURY2hhciB0eXBlIGluIHJ1c3Q%3D)

@ -4,4 +4,6 @@ In Rust, a **Tuple** is a type of data structure that holds a finite number of e
Learn more from the following links: Learn more from the following links:
- [@official@Tuple - Rust](https://doc.rust-lang.org/std/primitive.tuple.html)
- [@article@The Tuple Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-tuple-type) - [@article@The Tuple Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-tuple-type)
- [@video@Rust Tutorial - Tuples](https://www.youtube.com/watch?v=t047Hseyj_k&t=506s)

@ -4,4 +4,7 @@ In Rust, an `array` is a collection of elements of the same type, organized cons
Learn more from the following links: Learn more from the following links:
- [@official@Rust - array](https://doc.rust-lang.org/std/primitive.array.html)
- [@article@The Array Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-array-type) - [@article@The Array Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-array-type)
- [@article@Rust Array (With Examples)](https://www.programiz.com/rust/array)
- [@video@Rust Tutorial - Arrays](https://www.youtube.com/watch?v=t047Hseyj_k&t=767s)

Loading…
Cancel
Save