Small project to somewhat better understand lifetimes. Also see https://www.youtube.com/watch?v=gRAVZv7V91Q
Go to file
2024-01-23 11:14:44 +01:00
src Simplified example with lifetimes specified 2024-01-23 11:14:44 +01:00
.gitignore Example of an error when lifetime not specified 2024-01-23 10:48:58 +01:00
Cargo.lock Example of an error when lifetime not specified 2024-01-23 10:48:58 +01:00
Cargo.toml Example of an error when lifetime not specified 2024-01-23 10:48:58 +01:00
Readme.md Add Readme 2024-01-23 11:10:54 +01:00

Small project to somewhat better understand lifetimes.

This small project aims to help understanding how lifetimes work in rust a little better.

Swap branches to see difference without specifying lifetimes, with lifetimes and then a simplified version.

youtube

Heavily inspired by the following video: https://www.youtube.com/watch?v=gRAVZv7V91Q