Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
blog.sheerluck.dev
...The only prerequisite is that you have read the previous articles in this series, as I will assume you know ownership, borrowing, structs, enums, pattern matching, error handling, generics, traits, lifetimes, HashMap, iterators, and closures. Get the source code from here What is a Smart Pointer A pointer is a...
Rust Walkthroughs 2026-06-10 ~25 min read
encore.dev
...When you declare an API, a database, a Pub/Sub topic, or a cache, the declaration is ordinary TypeScript, and Encore reads the source to find those declarations and the request and response types attached to them, then provisions the infrastructure to match. We do that reading with a parser...
Observations/Thoughts 2026-07-15 ~6 min read
felix-knorr.net
...Uri| async move { match make_https(host, uri) { Ok(uri) => Ok(Redirect::permanent(&uri.to_string())), Err(e) => { Err(StatusCode::BAD_REQUEST) } } }; // Change to match where your app is hosted let addr = SocketAddr::from(([0, 0, 0, 0], 80)); let listener = tokio::net::TcpListener::bind(addr).await.unwrap(); axum::serve...
Observations/Thoughts 2024-10-16 ~12 min read
www.sea-ql.org
...impl Iden for Glyph { - fn unquoted(&self, s: &mut dyn fmt::Write) { + fn unquoted(&self) -> &str { - write!( - s, - "{}", match self { Self::Table => "glyph", Self::Id => "id", Self::Tokens => "tokens", } - ) - .unwrap(); }} Possible compile errors​ error[E0050]: method `unquoted` has 2 parameters but the declaration in trait `types::Iden::unquoted` has 1...
Project/Tooling Updates 2026-01-14 ~5 min read
www.worthe-it.co.za
...I only want to handle the // case where it's empty, meaning it's a normal new commit with no // special message-related arguments (not -m) let commit_source = env::args().nth(2); let current_branch = get_current_branch(); match (current_branch, commit_filename, commit_source) { (Ok(branch), Some(filename...
News & Blog Posts 2017-09-05 ~10 min read
blog.jfo.click
...I could assign that result to a local var and handle each case explicitly using a match statement... use std::fs::{File}; fn main() { let result = File::open("file_that_doesnt_exist.lol"); match result { Ok(v) => println!("success opening file :) {:?}", v), Err(e) => println!("error opening file!!!: {:?}", e), } println...
Blog Posts 2016-10-18 ~38 min read
rust-lang.github.io
...One can expect the ability to match tuple variants like V(u8, u8, u8) with patterns like V(x, ..) or V(.., z), but the compiler rejects such patterns currently despite accepting very similar V(..). This RFC is intended to "complete" the feature and make it work in all possible list...
RFC 1492 RFC 2016-02-06 ~2 min read
rolisz.ro
...lower values will give hints that are closer to the words, but they will match fewer words, higher values will match more words, potentially worse. impl Spymaster for DoubleHintVectorSpymaster<'_> { fn give_hint(&mut self, map: &Map) -> Hint { let enemy_color = opposite_player(self.color); let remaining_words = map.remaining_words...
Learn More Rust 2020-09-30 ~9 min read
fly.io
...Rust is big on pattern-matching; instead of control flow based (at bottom) on simple arithmetic expressions, Rust allows you to match exhaustively (with compiler enforcement) on the types of an expression, and the type system expresses things like Ok or Err. But match can be cumbersome, and so there...
Observations/Thoughts 2025-06-04 ~18 min read
guillaumegomez.github.io
...non-self arguments of bare functions and struct methods on their own line. @pmatos improved documention troubleshooting missing linker. @kmcallister updated Arc docs to match new Rc docs. @japaric implemented –sysroot on rustdoc. @liigo updated rustdoc to inline sidebar items, to display more in a page. @giannicic fixed E0520 error...
New Crates & Project Updates 2016-09-27 ~2 min read
quan.hoabinh.vn
...Remember to choose the one that matches your device flash size. After downloading, rename the file as partitions.csv and save in your top-level folder of the code base. Later, when flashing the firmware, add --partition-table option to espflash command. For example, in my case, it will be...
Observations/Thoughts 2024-04-03 ~9 min read
monadical.com
...Cursor, ) -> (event::Status, Option<Curve>) { let cursor_position = if let Some(position) = cursor.position_in(&bounds) { position } else { return (event::Status::Ignored, None); }; match event { Event::Mouse(mouse_event) => { let message = match mouse_event { mouse::Event::ButtonPressed(mouse::Button::Left) => { match *state { None => { *state = Some(Pending::One { from: cursor_position...
Rust Walkthroughs 2023-05-03 ~45 min read
richer-richard.github.io
...Verify — an assertion DSL over a render (true_peak_below, pitch_matches_score, tempo_is, …), so an agent can retry on a failed assertion instead of asking a human “does that sound right?” Every crate here works standalone. cochlea probe runs on any WAV, FLAC, mp3, or ogg file with...
Project/Tooling Updates 2026-07-15 ~2 min read
rust-lang.github.io
...let packed_cast = &raw const packed.field; Reference-level explanation Rust contains two operators that perform place-to-value conversion (matching & in C): one to create a reference (with some given mutability) and one to create a raw pointer (with some given mutability). In the MIR, this is reflected as...
RFC 2582 RFC 2018-11-01 ~11 min read
llogiq.github.io
...There’s a blanket Into<T> impl for each T with a matching From<_> implementation, so if you are a library author, you should consider implementing From<_> for your types and only resort to Into<_> implementations for types you cannot implement From for because of the orphan rule (which is...
News & Blog Posts 2015-11-30 ~6 min read
chrismorgan.info
...match instead of if People often suggest replacing the chained conditionals with a match block, which incidentally lets you skip the “superfluous” i % 15: for i in 1..101 { match (i % 3, i % 5) { (0, 0) => println!("FizzBuzz"), (_, 0) => println!("Buzz"), (0, _) => println!("Fizz"), (_, _) => println!("{}", i), } } Figure 13: Figure 1...
Rust Walkthroughs 2022-03-23 ~23 min read
owengage.com
...let mut start = self.index; loop { while self.index < self.slice.len() && !ESCAPE[self.slice[self.index] as usize] { self.index += 1; } if self.index == self.slice.len() { return error(self, ErrorCode::EofWhileParsingString); } match self.slice[self.index] { b'"' => { if scratch.is_empty() { // Fast path: return a slice of the...
Observations/Thoughts 2022-07-27 ~10 min read
seanmonstar.com
...I wrote a proposal for a forwards-compatible Body trait, and published an article as a preface to the pattern matching compatibility issues being solve in that proposal. For additions, I added version-specific Connection types for the client, to replace the “either-version” type already there. We also put...
Project/Tooling Updates 2022-08-31 ~2 min read
blog.codeship.com
...i32 = match start_s.parse() { Ok(n) => { n }, Err(_) => { println!("error: first argument not an integer"); return; }, }; let stop_s = args().nth(2).expect("Please provide a max id"); let stop : i32 = match stop_s.parse() { Ok(n) => { n }, Err(_) => { println!("error: second argument not an integer"); return; }, }; for x...
News & Blog Posts 2016-12-20 ~13 min read
rustacean-station.org
...II Pointers Are Complicated III 53:43 - Safe items with unsafe extern 59:32 - Unsafe attributes 1:03:44 - Omitting empty types in pattern matching The never type 1:11:33 - Floating-point NaN semantics and const 1:17:41 - Constants as assembly immediates 1:19:06 - Safely addressing unsafe...
Observations/Thoughts 2025-10-29 ~2 min read
"fzammetti: Am I the only one that finds highly ironic the naming of something that's supposed to be new and cutting-edge after a substance universally..."

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.