Archives

2026

Apr 16 84. Result::flatten — Unwrap Nested Results in One Call
result stdlib error-handling
Apr 15 83. Arc::unwrap_or_clone — Take Ownership Without the Dance
arc stdlib smart-pointers
Apr 15 82. isqrt — Integer Square Root Without Floating Point
integers math stdlib
Apr 14 81. checked_sub_signed — Subtract a Signed Delta From an Unsigned Without Casts
integers arithmetic std overflow
Apr 14 80. VecDeque::pop_front_if and pop_back_if — Conditional Pops on Both Ends
vecdeque collections std
Apr 13 79. #[diagnostic::on_unimplemented] — Custom Error Messages for Your Traits
traits diagnostics error-messages
Apr 13 78. div_ceil — Divide and Round Up Without the Overflow Bug
integers math std
Apr 12 77. repeat_n — Repeat a Value Exactly N Times
iterators std
Apr 12 76. slice::as_chunks — Split Slices into Fixed-Size Arrays
slices arrays performance parsing
Apr 11 75. select_nth_unstable — Find the Kth Element Without Sorting
slices sorting algorithms performance
Apr 11 74. slice::is_sorted — Ask the Slice if It's Already Sorted
slices sorting iterators
Apr 10 73. u64::midpoint — Average Two Numbers Without Overflow
numerics overflow algorithms
Apr 10 72. if let Guards — Pattern Match Inside Match Guards
pattern-matching match-guards rust-1.95
Apr 09 71. Inline const Blocks — Compile-Time Evaluation Anywhere
const compile-time patterns optimization
Apr 09 70. Iterator::intersperse — Join Elements Without Collecting First
iterators intersperse strings functional
Apr 08 69. Iterator::try_fold — Fold That Knows When to Stop
iterators error-handling try-fold functional
Apr 08 68. f64::next_up — Walk the Floating Point Number Line
float math precision std
Apr 07 67. Box::leak — Turn Owned Data Into a Static Reference
box memory static lifetime
Apr 07 66. Inferred Const Generics — Let the Compiler Count For You
const-generics arrays type-inference
Apr 06 65. Precise Capturing — Stop impl Trait From Borrowing Too Much
impl-trait lifetimes rust-2024
Apr 06 64. Iterator::unzip — Split Pairs into Separate Collections
iterators collections unzip
Apr 05 63. fmt::from_fn — Display Anything With a Closure
formatting display closures std
Apr 05 62. Iterator::flat_map — Map and Flatten in One Step
iterators functional std
Apr 04 61. Iterator::reduce — Fold Without an Initial Value
iterators functional std
Apr 04 60. Iterator::partition — Split a Collection in Two
iterators collections std
Apr 03 59. split_first_chunk — Destructure Slices into Arrays
slices arrays parsing
Apr 03 58. Option::is_none_or — The Guard Clause You Were Missing
option validation guards
Apr 02 57. New Math Constants — GOLDEN_RATIO and EULER_GAMMA in std
math constants std
Apr 02 56. Iterator::map_while — Take While Transforming
iterators map_while functional
Apr 01 55. floor_char_boundary — Truncate Strings Without Breaking UTF-8
strings utf-8 std
Apr 01 54. Cell::update — Modify Interior Values Without the Gymnastics
cell interior-mutability std rust-1.88
Mar 31 53. element_offset — Find an Element's Index by Reference
slices std rust-1.94
Mar 31 52. Peekable::next_if_map — Peek, Match, and Transform in One Step
iterators parsing peekable
Mar 30 51. File::lock — File Locking in the Standard Library
file-locking io std concurrency
Mar 30 50. slice::chunk_by — Group Consecutive Elements
slices iterators data-processing
Mar 29 49. std::io::pipe — Anonymous Pipes in the Standard Library
io pipes processes std
Mar 29 48. #[expect] — Lint Suppression That Cleans Up After Itself
lints attributes clippy
Mar 28 47. Vec::pop_if — Conditionally Pop the Last Element
vec collections std
Mar 28 46. Let Chains — Flatten Nested if-let with &&
let-chains pattern-matching rust-2024
Mar 27 45. get_disjoint_mut — Multiple Mutable References at Once
collections slice hashmap borrow-checker
Mar 27 44. split_once — Split a String Exactly Once
strings parsing stdlib
Mar 25 43. Vec::extract_if — Remove Elements and Keep Them
vec iterators collections stdlib
Mar 25 42. array::from_fn — Build Arrays from a Function
arrays std from_fn
Mar 24 40. Scoped Threads — Borrow Across Threads Without Arc
threads concurrency scoped-threads
Mar 24 41. Async Closures — Pass Async Code Like Any Other Closure
async closures tokio
Mar 23 39. Trait Upcasting — Cast dyn Trait to dyn Supertrait
traits trait-objects upcasting
Mar 23 38. #[must_use] — Never Ignore What Matters
attributes compiler error-handling
Mar 22 36. Cow<str> — Clone on Write
cow smart-pointers strings performance
Mar 22 37. Option::zip
option combinators functional
Mar 21 35. LazyLock
lazy static initialization lazylock
Mar 21 33. std::mem::take
mem ownership
Mar 21 34. array_windows
slices iterators array-windows
Mar 20 32. iter::successors
iterators std
Mar 20 31. HashMap's entry API
hashmap collections entry
Mar 19 30. dbg! macro
macro debugging
Mar 19 29. Let chains
if-let pattern-matching