Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
hegdenu.net
...4 point corridor, 13/15 locations match medium_corridor: 109 point corridor, 70/221 locations match long_narrow_corridor_few_total: 300 point corridor, 34/65 locations match long_corridor_many_filtered: 251 point corridor, 251/2547 locations match I like the way that Divan allows you to organize benchmarks...
Rust Walkthroughs 2024-05-01 ~18 min read
agourlay.github.io
...the index of the last event played) let start_index = self.current_cursor; let end_index = match sorted_events[start_index..].binary_search_by_key(start_index, |event| event.tick) { Ok(next_position) => start_index + next_position, Err(next_position) => { if next_position == 0 { // no matching elements return Some(&[]); } // return...
Rust Walkthroughs 2024-07-17 ~14 min read
tratt.net
...As soon as ‘a’ is matched, the rule succeeds, which leaves ‘b’ unmatched; neither parser tries to match ‘ab’ directly. ☒My favourite example of this is best expressed as a Parsing Expression Grammar (PEG): r <- a / ab or as a hand-written recursive descent parser: def r(s, i): if...
Observations/Thoughts 2020-09-16 ~38 min read
rust-lang.github.io
...Note that we do not perform coercions when matching traits (except for receivers, see below). If there is an impl for some type U, and T coerces to U, that does not constitute an implementation for T. For example, the following will not type check, even though it is OK...
RFC 401 RFC 2014-10-30 ~14 min read
dev.to
...u8 = 0; for (r, row) in self.cells.iter().enumerate() { for (c, cell) in row.iter().enumerate() { if cell.is_empty() { continue; } // check rows, // check columns, if player_number_match(cell.get_top_piece().get_player_number(), &number) { rows[r] += 1; columns[c] += 1; } // check diagonal, if r == c && player...
Observations/Thoughts 2020-10-14 ~10 min read
xd009642.github.io Archived: primary link replaced with an archive on 2026-09-12T17:24:50.642Z (UTC; replacement date, not snapshot date)
...impl SampleFormat { const fn bytes_per_sample(&self) -> usize { match self { Self::Int16 => 2, Self::Float32 => 4, } } fn to_float_fn(&self) -> Box<dyn Fn(&[u8]) -> f32> { let len = self.bytes_per_sample(); match self { Self::Int16 => Box::new(move |x: &[u8]| { i16::from_le_bytes((&x[..len]).try_into...
Observations/Thoughts 2024-11-06 ~17 min read
keminglabs.com
...But Finda highlights the matches as you type: which means that I’d need to juggle multiple typefaces and colors, as well as track the bounding box of each drawn substring to layout everything. Beyond rendering, I also ran into difficulties on the operating system integration front. I found it...
News & Blog Posts 2018-03-20 ~10 min read
mobilizon.fr
...Which is a perfect match for Rust! In this presentation we will:Weigh pros and cons of switching to Rust.See how to progressively rewrite a large codebase in Rust.See how to have guardrails to make sure the new code behaves like the legacy one.Have a look at...
Europe 2023-10-18 ~2 min read
sixtyfps.io
...If they match, the solved property is set to true in the model. If they don't match, start a timer that will close them after one second. While the timer is running, we disable every tile so one cannot click anything during this time. Insert this code before the...
Rust Walkthroughs 2020-12-16 ~14 min read
vksegfault.github.io
...Unfortunatelly development stalled and till today there is no exact matching to SIMD inctructions, so we must rely on auto vectorization.At the other end of the spectrum there have been C# which had fully standarized SIMD usage ever since .NET Core 3.0. We don’t have to bother...
Miscellaneous 2021-08-10 ~10 min read
ethanfrei.com
...Maybe it's my lack of knowledge but I couldn't get a catch-all route with Rocket that would match when there was some path and when there was no path, so I needed to make two routes. Secondly, notice the , rank = 2 part above. This is needed because...
News & Blog Posts 2018-06-26 ~6 min read
d34dl0ck.me
...So there is no need to design a custom error type unless you want to match on it in your code or log it differently than you would present it to the user. For a library crate, however, you want to design your error types carefully, as they will be...
Observations/Thoughts 2025-06-04 ~10 min read
tokio.rs
...let api_router = Router::new() .route("/users", get(|| { ... })) .fallback(api_fallback); let app = Router::new() // this would panic since `api_router` has a fallback .nest("/api", api_router); However in 0.6 that now just works and requests that start with /api but aren't matched by api_router will...
Project/Tooling Updates 2022-11-30 ~6 min read
guillaumegomez.github.io
...Look for T-doc tagged issues on GitHub! Waiting for merge @QuietMisdreavus updated formatting of fn signatures and where clauses to match style rfcs in rustdoc. @estebank pointed at fields that make the type recursive, added an explicit help message for binop type mismatch, added end line display of multiline...
News & Blog Posts 2017-04-11 ~2 min read
rust-lang.github.io
...Eventually, we will likely want to support fully general pattern matching just like in let bindings (e.g., const (a, b): (u8, u8) = (1, 1)) to not have const _ be a special case in the language. However, this RFC leaves the details of such a design up to a future...
RFC 2526 RFC 2018-08-18 ~2 min read
guillaumegomez.github.io
...BlueSpaceCanary removed the double introduction for cargo run. @gavinb improved error message and snippet for “did you mean x”. @kmcallister updated Arc docs to match new Rc docs. @christopherdumas updated includes! documentation. @GuillaumeGomez fixed run button appearing when it shouldn’t, merged E0002 into E0004, added missing urls for error...
Other Weeklies from Rust Community 2016-10-11 ~2 min read
sixtyfps.io
...Make the strong_ref and weak_ref of VRc atomic ( 7cc13d ) To match the equivalent in rust C++ Add a few asserts that the non-thread safe API is not called in a thread ( 9b869f ) Fixes Set the width of items in a ListView ( 143510 ) Fixes #408 Fix build with...
Project/Tooling Updates 2021-08-18 ~2 min read
rustc-dev-guide.rust-lang.org
...FileCheck best practices See LLVM FileCheck guide for details. • Avoid matching on specific register numbers or basic block numbers unless they're special or critical for the test. Consider using patterns to match them where suitable. TODO Pending concrete advice.
Guide to Rustc Development Book 2024-01-01 ~6 min read
llogiq.github.io
...Excellent!) Another thing happened when I revisited the Rust benchmarksgame entries and found that regex now has a regex::bytes submodule that is capable to match and replace stuff on byte slices. So I tried to incorporate this into the regex_dna benchmark, but found out that it performed worse...
News & Blog Posts 2016-04-25 ~2 min read
blog.gokuls.in
...filter matches the files you changed. None of that was part of the original plan. It just kept happening the way side projects usually do. I'd hit some gap between "works on GitHub" and "doesn't work locally," get annoyed by it, and then go build the missing piece...
Observations/Thoughts 2026-05-20 ~6 min read
"That's one of the great things about Rust: sometimes you can do something really dumb and get away with it."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.