Archives

2026

May 07 124. Iterator::cycle — Round-Robin Without the Modulo Math
iterators std
May 06 123. BTreeMap::pop_first — A Sorted Map That Doubles as a Priority Queue
btreemap collections std
May 06 122. Option::filter — Keep Some Only When the Value Passes
option std
May 05 121. rem_euclid — The Modulo That Doesn't Go Negative
math std integers
May 05 120. OnceLock — Lazy Statics That Initialize on Your Schedule
std sync statics
May 04 119. iter::from_fn — Build a Custom Iterator Without the Struct
iterators std closures
May 04 118. [T; N]::map — Transform an Array Without Allocating a Vec
arrays std
May 03 117. Iterator::step_by — Every Nth Element Without filter + enumerate
iterators std
May 03 116. Path::file_prefix — Get the Real Stem of archive.tar.gz
path std filesystem
May 02 115. Vec::resize_with — Grow a Vec With a Closure, Not a Clone
vec std collections
May 02 114. Option::transpose — Use ? on an Optional Result
option result error-handling std
May 01 113. Arc::make_mut — Mutate Inside an Arc Without the Dance
arc std smart-pointers
May 01 112. Iterator::scan — Fold That Yields Every Step
iterators std
Apr 30 111. Vec::insert_mut — Splice In and Edit Without Reindexing
vec vecdeque std rust-1.95
Apr 30 110. slice::split_at_checked — Split Without the Panic
slice std panics
Apr 29 109. BinaryHeap::peek_mut — Edit the Top Without Pop-and-Push
std binaryheap collections
Apr 29 108. Iterator::max_by_key — Find the Biggest Without Sorting the Whole Thing
iterator std sorting
Apr 28 107. Vec::splice — Replace a Range and Keep the Old Values
vec std collections
Apr 28 106. Iterator::by_ref — Take Part of an Iterator and Keep the Rest
iterator std ownership
Apr 27 105. Vec::extend_from_within — Duplicate a Range Without Fighting the Borrow Checker
vec std borrow-checker
Apr 27 103. bool::then_some — Turn a Condition Into an Option Without an if
std option bool
Apr 26 104. Vec::swap_remove — O(1) Removal When Order Doesn't Matter
vec std performance
Apr 25 102. slice::partition_point — Binary Search That Just Returns the Index
slice std search
Apr 24 101. f64::total_cmp — Sort Floats Without the NaN Panic
std sorting floats
Apr 24 100. std::cmp::Reverse — Sort Descending Without Writing a Closure
std sorting collections
Apr 23 99. std::mem::replace — Swap a Value and Keep the Old One
mem ownership state-machine
Apr 23 98. sort_by_cached_key — Stop Recomputing Expensive Sort Keys
sorting performance slice std
Apr 22 97. Option::take_if — Take the Value Out Only When You Want To
option std patterns
Apr 22 96. Result::inspect_err — Log Errors Without Breaking the ? Chain
result error-handling stdlib debugging
Apr 21 95. LazyLock::get — Peek at a Lazy Value Without Initializing It
lazy lazylock lazycell std rust-1.94
Apr 21 94. ControlFlow::is_break and is_continue — Ask the Flow Which Way It Went
controlflow iterator rust-1.95
Apr 20 93. MaybeUninit Array Conversions — Build Fixed Arrays Without transmute
maybeuninit unsafe arrays rust-1.95
Apr 20 92. core::range — Range Types You Can Actually Copy
ranges iterators std rust-1.95
Apr 19 91. bool::try_from — Convert Integers to Booleans Safely
conversions error-handling rust-1.95
Apr 19 90. black_box — Stop the Compiler From Erasing Your Benchmarks
performance benchmarking hints std
Apr 18 89. cold_path — Tell the Compiler Which Branch Won't Happen
performance hints std rust-1.95
Apr 18 88. Vec::push_mut — Push and Modify in One Step
vec collections std rust-1.95
Apr 17 87. Atomic update — Kill the Compare-and-Swap Loop
concurrency atomics std
Apr 17 86. cfg_select! — Compile-Time Match on Platform and Features
cfg conditional-compilation cross-platform
Apr 16 85. cast_signed & cast_unsigned — Explicit Sign Casting for Integers
integers casting type-safety
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