Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
rust-lang-nursery.github.io
...get_typed_func looks up an export by name and checks that its signature matches the Rust generic parameters — (i32, i32) in, i32 out. Core WebAssembly function parameters are limited to four numeric types: i32, i64, f32, and f64. Strings, structs, and other complex values cannot cross the function boundary...
The Rust Cookbook Book 2024-01-01 ~1 min read
brian-armstrong.github.io
...Next, the noise and other impairments are added, followed by a matched decimation filter and finally demodulation and decoding.Open the signal lab
Project/Tooling Updates 2026-10-14 ~1 min read
rust-analyzer.github.io
#8222 don’t mark unlinked file diagnostic as unused. #8246 (first contribution) update VIM YCM installation instructions. #8250 classify associated types in paths more accurately. #8256 make "Move item" commands work in more cases. #8261 fix expansion of OR-patterns in match check. #8266 fix generic argument lowering in qualified...
Project/Tooling Updates 2021-04-07 ~1 min read
aloso.github.io
...Expr,) -> Option<Value> { match (kind, eval(vars, expr)?) { (UnExprKind::Not, Value::Bool(b)) => { Some(Value::Bool(!b)) } (UnExprKind::Neg, Value::Num(n)) => { Some(Value::Num(-n)) } _ => None, }}fn eval_binary( kind: BinExprKind, vars: &Variables<'_>, lhs: Expr, rhs: Expr,) -> Option<Value> { match kind { BinExprKind::Add => { if let Value::Num(lhs) = eval...
Rust Walkthroughs 2021-04-14 ~10 min read
www.greyblake.com
...impl Drink { fn kind(&self) -> DrinkKind { match self { Drink::TapWater -> DrinkKind::TapWater, Drink::Coffee(..) -> DrinkKind::Coffee, Drink::Tea { .. } -> DrinkKind::Tea } } } And ability to iterate over all variants of DrinkKind: impl DrinkKind { fn all() -> Vec<DrinkKind> { use DrinkKind::*; vec![TapWater, Coffee, Tea] } } The problem with the solution The solution above will...
Rust Walkthroughs 2023-08-09 ~3 min read
lucumr.pocoo.org
...impl Enumerator { fn query_len(&self) -> Option<usize> { Some(match self { Enumerator::Empty => 0, Enumerator::Values(v) => v.len(), Enumerator::Iter(i) => match i.size_hint() { (a, Some(b)) if a == b => a, _ => return None, }, Enumerator::RevIter(i) => match i.size_hint() { (a, Some(b)) if a == b => a, _ => return...
Observations/Thoughts 2024-08-28 ~16 min read
lupyuen.github.io
...false, }, 14:15, ) (StackSlot refers to the values in the constants array) Let’s match the two… Yep Abstract Syntax Trees can get deeply nested, like this for loop… (See the complete Abstract Syntax Tree) But Abstract Syntax Trees are actually perfect for converting Rhai to uLisp. Lisp is a...
Rust Walkthroughs 2021-09-08 ~24 min read
www.sea-ql.org
...let res = Bakery::insert_many(std::iter::empty()) .on_empty_do_nothing() // <- you needed to add this, // otherwise insert empty [] would lead to error .exec(db) .await;assert!(matches!(res, Ok(TryInsertResult::Empty))); After careful consideration, we made a number of changes in 2.0: removed APIs (e.g. Insert...
Project/Tooling Updates 2025-09-24 ~9 min read
erickt.github.io
...ip::SocketAddr) -> libc::c_int { unsafe { let fd = match libc::socket(libc::AF_INET, libc::SOCK_STREAM, 0) { -1 => panic!(), fd => fd, }; let mut storage = mem::zeroed(); let len = addr_to_sockaddr(addr, &mut storage); let addrp = &storage as *const _ as *const libc::sockaddr; match libc::bind(fd, addrp, len...
Blog Posts 2014-11-24 ~16 min read
blog.paulme.ng
...is_match, find, captures. A few lines of changes from using Captures to Matches reduce the running time by 2s. Using dynamic programming to trace the best path in Viterbi decoding I have speech processing and natural language processing background so I am quite familiar with hidden markov model training...
News & Blog Posts 2019-07-02 ~7 min read
www.afloat.boats
...returns a value), we can assign the values to `tile_repr` // And then write the value to the format "stream" let tile_repr = match self { TileType::Empty => "Empty", TileType::Red => "Player Red", TileType::Black => "Player Black", }; write!(f, "{tile_repr}") } } Compiles without a hitch! And the browser console now logs...
Rust Walkthroughs 2025-08-27 ~7 min read
bevyengine.org
...This means 100% of the donations we receive go toward furthering our mission.Donations to Bevy Foundation (including all past donations that occurred this year) are now tax-deductible in the United States.Many employers have donation-matching programs for 501(c)(3)s. It is worth checking to see...
Project/Tooling Updates 2024-09-25 ~2 min read
freemasen.com
...u8) -> Self { match v { 1 => Self::Legacy, 2 => Self::WriteAheadLog, _ => Self::Unknown(v), } } } Let's just check in on a few things here. First we are deriveing a few more items, PartialEq and Eq allow for using the == operator with 2 FormatVersions while the PartialOrd and Ord allow for the...
Rust Walkthroughs 2020-11-18 ~14 min read
matthewkmayer.github.io
...if let Some(matches) = matches.subcommand_matches("generate") { let services_config_path = matches.value_of("services_config").unwrap(); let service_configs = ServiceConfig::load_all(services_config_path) .expect("Unable to read services configuration file."); let out_dir = Path::new(matches.value_of("out_dir").unwrap()); commands::generate::generate_services(service...
News & Blog Posts 2017-07-18 ~10 min read
xd009642.github.io Archived: primary link replaced with an archive on 2026-09-12T17:24:52.202Z (UTC; replacement date, not snapshot date)
...Additionally, the first inference time is by default quite long to match behaviour observed in the wild. There’s also, some likelihood of the inference panicking or failing without a panic. Interfacing with neural network runtimes often involves an FFI interface and GPUs. Both of these can cause issues for...
Observations/Thoughts 2024-12-04 ~11 min read
smallcultfollowing.com
...After that, I will turn to virtual dispatch, impls, and matching, and show how they interact.The Rust enumI don’t know about you, but when I work with C++, I find that the first thing that I miss is the Rust enum. Usually what happens is that I start...
Notable Links 2015-05-18 ~5 min read
m-compressors.github.io
...Byte identity with C, SIMD kernels and match finding stay with the tests. mbrotli and mzstd now carry machine-checked proofs in Lean 4 that parts of their code follow RFC 7932 and RFC 8878. They are not verified codecs yet, and this post is not an announcement that they...
Project/Tooling Updates 2026-11-04 ~14 min read
leshow.github.io
...Rust includes a way to pattern match on enum variants with the match keyword. If you haven’t used a language with robust pattern matching before, it’s really a pleasure to use. fn plus(a: Option<usize>) -> Option<usize> { match a { Some(v) => Some(v + 1), None => None } } This...
News & Blog Posts 2020-02-18 ~20 min read
www.lpalmieri.com
...web::Data<Secret<String>>, // No longer returning a `Result<HttpResponse, LoginError>`! ) -> HttpResponse { // [...] match validate_credentials(credentials, &pool).await { Ok(user_id) => { tracing::Span::current() .record("user_id", &tracing::field::display(&user_id)); HttpResponse::SeeOther() .insert_header((LOCATION, "/")) .finish() } Err(e) => { let e = match e { AuthError::InvalidCredentials(_) => LoginError::AuthError(e.into...
Rust Walkthroughs 2022-01-05 ~92 min read
www.afloat.boats
...fn end_player_turn(&mut self) { self.player_turn = match self.player_turn { Player::Red => Player::Black, Player::Black => Player::Red, } } // 2. pub fn select_col(&mut self, col_idx: u8) -> bool { // board update logic will go here self.end_player_turn(); } } 1. end_player_turnThe end_player_turn function...
Rust Walkthroughs 2025-10-29 ~7 min read
"Think about how your contributions may be received before you send them. This kind of thought, true thought, with real emotion and reasoning, is the o..."

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.