Eugen 69539ece49 Auf Branch learning_rust
Zum Commit vorgemerkte Änderungen:
	geändert:       exercises/00_intro/intro1.rs
	geändert:       exercises/00_intro/intro2.rs
	geändert:       exercises/01_variables/variables1.rs
	geändert:       exercises/01_variables/variables2.rs
	geändert:       exercises/01_variables/variables3.rs
	geändert:       exercises/01_variables/variables4.rs
	geändert:       exercises/01_variables/variables5.rs
	geändert:       exercises/01_variables/variables6.rs
	geändert:       exercises/02_functions/functions1.rs
	geändert:       exercises/02_functions/functions2.rs
	geändert:       exercises/02_functions/functions3.rs
	geändert:       exercises/02_functions/functions4.rs
	geändert:       exercises/02_functions/functions5.rs
	geändert:       exercises/03_if/if1.rs
	geändert:       exercises/03_if/if2.rs
	geändert:       exercises/03_if/if3.rs
	geändert:       exercises/04_primitive_types/primitive_types1.rs
	geändert:       exercises/04_primitive_types/primitive_types2.rs
	geändert:       exercises/04_primitive_types/primitive_types3.rs
	geändert:       exercises/04_primitive_types/primitive_types4.rs
	geändert:       exercises/04_primitive_types/primitive_types5.rs
	geändert:       exercises/04_primitive_types/primitive_types6.rs
	geändert:       exercises/05_vecs/vecs1.rs
	geändert:       exercises/05_vecs/vecs2.rs
	geändert:       exercises/06_move_semantics/move_semantics1.rs
	geändert:       exercises/06_move_semantics/move_semantics2.rs
	geändert:       exercises/06_move_semantics/move_semantics3.rs
	geändert:       exercises/06_move_semantics/move_semantics4.rs
	geändert:       exercises/06_move_semantics/move_semantics5.rs
	geändert:       exercises/06_move_semantics/move_semantics6.rs
	geändert:       exercises/07_structs/structs1.rs
	geändert:       exercises/07_structs/structs2.rs
	geändert:       exercises/quiz1.rs
	neue Datei:     rustlings
2023-12-19 01:10:51 +01:00
..
2023-12-19 01:10:51 +01:00
2023-12-19 01:10:51 +01:00

Vectors

Vectors are one of the most-used Rust data structures. In other programming languages, they'd simply be called Arrays, but since Rust operates on a bit of a lower level, an array in Rust is stored on the stack (meaning it can't grow or shrink, and the size needs to be known at compile time), and a Vector is stored in the heap (where these restrictions do not apply).

Vectors are a bit of a later chapter in the book, but we think that they're useful enough to talk about them a bit earlier. We shall be talking about the other useful data structure, hash maps, later.

Further information