mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-03-19 06:39:44 +01:00
More links to steps in the Rust Roadmap (#5894)
More links were added to the array step in the Rust roadmap
This commit is contained in:
parent
6d983167c8
commit
b1d790739f
@ -1,7 +1,10 @@
|
||||
# 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:
|
||||
|
||||
- [@article@The Character Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-character-type)
|
||||
- [@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@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:
|
||||
|
||||
- [@article@The Tuple Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-tuple-type)
|
||||
- [@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)
|
||||
- [@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:
|
||||
|
||||
- [@article@The Array Type](https://rust-book.cs.brown.edu/ch03-02-data-types.html#the-array-type)
|
||||
- [@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@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…
x
Reference in New Issue
Block a user