Commit Graph
18 Commits
Author SHA1 Message Date
Stephan Rehfeld 7a1b0975d2 Example with references and mutable references 2026-04-22 17:59:39 +02:00
Stephan Rehfeld 12a54c42da Image example to show Ownership 2026-04-15 18:58:16 +02:00
Stephan Rehfeld bd260f1769 Drop and move behavior 2026-04-15 18:04:15 +02:00
Stephan Rehfeld 823ec0ad00 Move is the default in Rust 2026-04-08 19:03:40 +02:00
Stephan Rehfeld 019fbcf095 use unwrap_or to get default value 2026-04-08 18:46:40 +02:00
Stephan Rehfeld 20c675ef91 You can use unwrap to get value. Panics, if result is Err 2026-04-08 18:43:12 +02:00
Stephan Rehfeld 6e0e031b12 Optional and Result for optional parameters and functions that may fail. 2026-04-08 18:41:31 +02:00
Stephan Rehfeld d5427c96ca Enum values can contain futher values. Use pattern matching to access. 2026-04-08 18:19:44 +02:00
Stephan Rehfeld 092e5693b7 Simple enum with match 2026-04-08 18:16:15 +02:00
Stephan Rehfeld 04520ffa1e Ranges can be reversed 2026-04-08 18:05:35 +02:00
Stephan Rehfeld c77982c642 Range syntax 2026-04-08 18:05:06 +02:00
Stephan Rehfeld 97e5c2fd72 For loop over array 2026-04-08 18:03:28 +02:00
Stephan Rehfeld 6316eb4e02 Loops can returns values 2026-04-08 17:54:28 +02:00
Stephan Rehfeld c6bba1c4a7 Loop loop 2026-04-08 17:46:17 +02:00
Stephan Rehfeld cbc1663ad2 While loop 2026-04-08 17:43:28 +02:00
Stephan Rehfeld 72541ec0a1 If can return values 2026-04-08 17:41:15 +02:00
Stephan Rehfeld 8779759e7a Simple if condifition 2026-04-08 17:38:49 +02:00
Stephan Rehfeld f899a55a08 Our code so far. 2026-04-08 17:28:43 +02:00