We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Rust and Tell - Berlin - Rust tips and tricks by Zeeshan Ali
Learn Rust tips and tricks from Zeeshan Ali at our Berlin conference. Mastering lifetimes in Rust can be a challenge, but don't worry, Zeeshan shares his own experiences and solutions to keep a reference to a string around.
- Rust is a powerful language, but it can be challenging to master, especially when it comes to lifetimes.
- Lifetimes are a common source of confusion, even for experienced developers.
- Zeeshan Ali shares his own experiences and struggles with lifetimes in Rust, including the “keep str” problem.
- The “keep str” problem occurs when you need to keep a reference to a string around for a certain amount of time, but the string’s lifetime is not explicitly specified.
- Zeeshan Ali’s solution is to use the “cow” (clone on write) approach, which allows you to keep a reference to a string around without having to worry about lifetimes.
- The “cow” approach is useful when you need to keep a reference to a string around for a certain amount of time, but you don’t want to own the string itself.
- Zeeshan Ali also discusses the importance of understanding lifetimes in Rust, and how it can be challenging to master.
- He also talks about the importance of learning from mistakes and not being discouraged by setbacks.
- Zeeshan Ali’s talk is intended to be a helpful guide for beginners and experienced developers alike, and to demystify the concept of lifetimes in Rust.