Amanjeev Sethi
Amanjeev Sethi
Note: please feel free to close this if this is duplicate or something's amiss. But if you can help me figure out, I'd appreciate it. Peek: 1.5.1 GTK: 3.24.30 GLib:...
I wanted to build an app using 500px's API. The system would basically allow you to donate a percentage of your earnings on 500px to charities or non-profits of your...
https://github.com/ferrous-systems/rust-exercises/blob/main/exercise-book/src/simple-db.md Add more match. more match more match! chant grows! cc @miguelraz ```[tasklist] ### Tasks ```
In Shapes the [`Circle` area requires `PI` which in the solution uses PI at the end](https://github.com/ferrous-systems/rust-exercises/blob/main/exercise-solutions/shapes-part-3/src/lib.rs#L67). But if you change the order ```rust std::f32::consts::PI.into() * self.radius * self.radius ``` This...
## Problem code ``` fun main() { fib(0, 1, 10) } fun fib(mut first: i64, mut second: i64, mut limit: i64) { println(first) println(second) mut next = first + second...
We do not have slides for `cfg` stuff.
There are a few Playground links that we use. Please add them to the appropriate positions/slides.
Slide code: https://github.com/ferrous-systems/rust-training/blob/main/training-slides/src/lifetimes.md?plain=1#L95 This function CAN return local data ```rust fn takes_and_returns(s: &str) -> &str { "abc" } ```
## Where Slide 3 of Error handling ## What Error handling slides (3) shows `'static` lifetime and lifetimes have not been talked about yet in the course. It makes it...