
Daily Rust
@rustoftheday
Followers
3K
Following
667
Media
122
Statuses
412
Daily tips & tricks for Rust 🦀 programming. Following back all accounts with 🦀 or 🐪 in their profile.
Joined November 2023
🦀 #Rust Tip #108:. I always enjoy the power of Rust #iterators. Here are two utility functions that you might not know about:. peekable() : Allow peeking at next element without consuming it. partition(cond_fn): Partition an iterator into separate collections with a condition
0
9
158
RT @LiamWoodleigh: @rustoftheday @tsoding C++ and memory unsafe languages should be considered deprecated.
0
1
0
Working with chrono + chrono-tz in #Rust? Brace for confusion! 🌍⏳. chrono-tz::Tz is both a type and a value, but chrono prefers FixedOffset and Utc, making conversions unintuitive. For a language as elegant as Rust, time handling feels oddly clunky.
1
0
9
RT @AstraKernel: ✨ I love Rust's Result type: it's either an error or a value. In Go, a person can do `return nil, nil` that can mess you….
0
2
0