Stephan Rehfeld rehfeldst
  • Joined on 2025-09-29
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-05-13 16:38:38 +00:00
c4a794c4f2 Example for seperate tests in tests directory
2649558ecd You can also test if a code should panic
6adb2e143f Implement some tests
29f39a9163 You can use implemented traits
Compare 4 commits »
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-05-13 16:03:36 +00:00
0a692c01de You can also make a whole module public, to allow access
41eb9a9dc0 You can provide internals of a module via pub use
5b4c205234 Some cleanup
Compare 3 commits »
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-05-13 15:50:10 +00:00
09ff36dff8 Put some stuff into lib.rs
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-04-29 16:40:41 +00:00
45cad795a7 Use enums
5daaf9e1bc Iterating over collection using match
bb45906753 Important Rust Pattern: Inheritance does not exist, use enum to store multiple different types in same Collection
b7a1f52360 Putting some Sphere into a Vec
b1963c7e6a Adding some Geometries
Compare 11 commits »
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-04-29 15:35:49 +00:00
81205e5b29 Example with ownership
07d7855f47 CODE DOES NOT Compile
352085f8d9 We need lifitime annotation, when struct wants to old a reference.
b0e998fb28 Either on mutable borrow or inifite immutable borrows are allowed
7a1b0975d2 Example with references and mutable references
Compare 5 commits »
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-04-15 16:58:30 +00:00
12a54c42da Image example to show Ownership
bd260f1769 Drop and move behavior
Compare 2 commits »
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-04-08 17:03:51 +00:00
823ec0ad00 Move is the default in Rust
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-04-08 16:46:56 +00:00
019fbcf095 use unwrap_or to get default value
20c675ef91 You can use unwrap to get value. Panics, if result is Err
6e0e031b12 Optional and Result for optional parameters and functions that may fail.
d5427c96ca Enum values can contain futher values. Use pattern matching to access.
092e5693b7 Simple enum with match
Compare 5 commits »
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-04-08 16:06:40 +00:00
04520ffa1e Ranges can be reversed
c77982c642 Range syntax
97e5c2fd72 For loop over array
6316eb4e02 Loops can returns values
c6bba1c4a7 Loop loop
Compare 8 commits »
rehfeldst created branch master in rehfeldst/rust-kurs 2026-04-08 15:34:10 +00:00
rehfeldst pushed to master at rehfeldst/rust-kurs 2026-04-08 15:34:10 +00:00
f899a55a08 Our code so far.
rehfeldst created repository rehfeldst/rust-kurs 2026-04-08 15:31:03 +00:00
rehfeldst created branch main in rehfeldst/makefile-example 2025-11-03 16:37:20 +00:00
rehfeldst pushed to main at rehfeldst/makefile-example 2025-11-03 16:37:20 +00:00
f4d5c3eba9 Added LICENSE file
179152cf5b Added Debug and Release mode to Makefile
c75ed48cc6 Made project name adjustable
652828c29d Changed makefile so that the compiler writed dependencies to disk
0de00b46fb Added feature bar
Compare 10 commits »
rehfeldst created repository rehfeldst/makefile-example 2025-11-03 16:35:06 +00:00
rehfeldst created repository rehfeldst/info2Wortsalat 2025-10-23 15:00:45 +00:00