馃 I got surprised by calling last() on a DoubleEndedIterator. Now, it鈥檚 a Clippy lint! qsantos.fr/2025/01/01/r...
Quentin
Quentin
@qsantos.fr
馃嚝馃嚪 French 馃 Rust enthusiast 馃嚡馃嚨 Japanese learner (N1) 馃摶 Interested in amateur radio Programming stuff (not just Rust): https://github.com/qsantos
31 followers23 following61 posts
qsantos.frRust Gotcha: last() on DoubleEndedIterator - Quentin Santostl;dr: don鈥檛 call last() on a DoubleEndedIterator Edit: And, now it is a Clippy lint! How do you efficiently get the last part of a space-separated string in Rust? It will be obvious to some, but the ...
I have often seen confusion between str and String in #Rustlang. Maybe this will help.
qsantos.frRust Strings for C Programmers - Quentin SantosThis article will quickly explain the Rust types [T; N], &[T; N], &[T], Vec<T>, &Vec<T> with C code, and what the str, &str, String, OsString and CString add. Arrays and Slices Rust C [T; N] (array)Ex...
Did you know that #RustLang lets you move !Unpin values?
qsantos.frYou can move !Unpin - Quentin SantosAlthough I am now mostly comfortable with Rust, some concepts still elude me. One of them is the exact meaning of Unpin. The documentation says: The documentation of Unpin says: Types that do not requ...
If you want to prepare for this year's #AdventOfCode, take a look at my article on dynamic programming, it will probably be useful for some of the later puzzles! qsantos.fr/2024/01/04/d...
qsantos.frDynamic Programming is not Black Magic - Quentin SantosThis year鈥檚 Advent of Code has been brutal (compare the stats of 2023 with that of 2022, especially day 1 part 1 vs. day 1 part 2). It included a problem to solve with dynamic programming as soon as d...
You are up to date.