Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
aibodh.com
...Ok means “query returned exactly one result,” Err means “something about that query didn’t match.” After that we match on an Option, which is Rust’s “maybe there is a value” type. Some(atlas) means the texture atlas exists and we can tweak it; None means it hasn’t...
Rust Walkthroughs 2025-10-15 ~24 min read
www.possiblerust.com
...Enums may be marked “non-exhaustive” to force users of the crate in which the type is defined to include a catch-all match pattern, enabling the addition of future variants to the enum without breaking compatibility for users. Note that users of the enum within the current crate are...
Learn 2020-07-28 ~3 min read
blog.sheerluck.dev
...Res<Time>, ) { for (mut transform, paddle) in &mut paddle_query { let mut direction = 0.0; match paddle.side { Side::Left => { if keyboard.pressed(KeyCode::KeyW) { direction = 1.0; } if keyboard.pressed(KeyCode::KeyS) { direction = -1.0; } } Side::Right => { if keyboard.pressed(KeyCode::ArrowUp) { direction = 1.0; } if keyboard.pressed(KeyCode...
Rust Walkthroughs 2026-05-27 ~23 min read
code.visualstudio.com
...Operation) -> u32 { match op { Operation::Add(operands) => operands.left + operands.right, Operation::Sub(operands) => operands.left - operands.right, Operation::Mul(operands) => operands.left * operands.right, Operation::Div(operands) => operands.left / operands.right, } } } // Export the Calculator to the extension code. export!(Calculator); The export!(Calculator); statement at the end of the...
Miscellaneous 2024-05-15 ~14 min read
coaxion.net
...They nonetheless show how Rust is a good match for writing GStreamer plugins. Apart from actual code changes, also the code was relicensed from the LGPL-2 to a dual MIT-X11/Apache2 license to make everybody’s life a bit easier with regard to static linking and building new...
News & Blog Posts 2017-04-04 ~8 min read
gamedev.rs
...By explicitly carrying the types U (uniform interface), V (vertex shader interface), and F (fragment shader interface), posh enables static verification, ensuring that the data provided in draw calls matches the shader’s signature. For simplicity, posh currently targets OpenGL ES 3.0. Although it is an experimental project, its...
Newsletters 2023-08-02 ~9 min read
hands-on-rust.com
...Run the following command (you may need to adjust the path to match your target directory if you are using workspaces): wasm-bindgen target\wasm32-unknown-unknown\release\flappy_bonus.wasm --out-dir .\wasm_help --no-modules --no-typescript If you look in your wasm-help directory, you’ll see...
Rust Walkthroughs 2021-11-10 ~7 min read
www.arunma.com
...usize) -> Result<f64> { if num_buckets_m < 16 { return Err(InputError(format!( "Invalid number of buckets calculated {num_buckets_m}" ))); } let alpha = match num_buckets_m { 16 => 0.673, 32 => 0.697, 64 => 0.709, _ => 0.7213 / (1.0 + 1.079 / num_buckets_m as f64), }; Ok(alpha) }//Hash helper...
Rust Walkthroughs 2023-05-03 ~8 min read
www.datadoghq.com
...There was an initial Java library for Tree-sitter, but it was limited in functionality. (For example, it did not support Tree-sitter pattern matching, which is mandatory for optimizing the speed of the analyzer.) The Tree-sitter core libraries are implemented in Rust. JavaScript execution: Our static analysis rules...
Observations/Thoughts 2024-05-29 ~9 min read
blog.piston.rs
...It is very convenient for testing ideas rapidly It does not need a garbage collector It forces you to think in a data oriented way It is a language for prototyping, and can not match Rust on performance. However, it is fast enough to be used in simple games. When...
News & Blog Posts 2016-02-22 ~3 min read
blog.burntsushi.net
...let keys = stream.into_strs()?; // Notice that "123", "xyz123" and "☃☃☃" did not match. assert_eq!(keys, vec![ "food", "τροφή", "еда", "מזון", ]); In this example, we show how to execute a regular expression query against an ordered set. The regular expression is \pL+, which will only match non-empty keys that...
Rust Walkthroughs 2021-08-18 ~87 min read
blog.burntsushi.net
...let keys = stream.into_strs()?; // Notice that "123", "xyz123" and "☃☃☃" did not match. assert_eq!(keys, vec![ "food", "τροφή", "еда", "מזון", ]); In this example, we show how to execute a regular expression query against an ordered set. The regular expression is \pL+, which will only match non-empty keys that...
News & Blog Posts 2015-11-16 ~87 min read
docs.wickra.org
...The 70.4641 value matches the textbook value pinned by the unit test classic_wilder_textbook_values in crates/wickra-core/src/indicators/rsi.rs.Composing indicators with Chain ​Chain<A, B> wires the output of A straight into the input of B, provided both stages agree on f64 as...
Project/Tooling Updates 2026-07-08 ~3 min read
domwillia.ms
...impl ActivityContext { /// Waits until the next event matching this agent's /// subscription arrives async fn next_event(&self) -> EntityEvent { loop { match self.task.pop_event() { None => { // keep waiting until an event marks // this task as ready again self.task.park_until_triggered().await; } Some(evt) => return evt, } } } } impl TaskRef { /// Returns...
Rust Walkthroughs 2022-02-16 ~13 min read
beachape.com
...From what I can tell, it’s mostly used for binding pointers during pattern matching 1 2 3 4 5 match some_int { // Why not Some(& s) => ... ??? Some(ref s) => println!("{}",s), None => unreachable!() } &mut When handing out references of something bound with let mut, why do i need to...
News & Blog Posts 2017-05-30 ~19 min read
robertknight.me.uk
...These pattern-match sequences of operations and replace them with alternatives that compute the same result but require fewer passes over the data. Better matrix-vector multiplication kernels were added. Auto-regres-sive models such as LLMs or Whisper spend a lot of time in ma-trix-multiply operations which...
Project/Tooling Updates 2025-01-15 ~9 min read
blog.sedrik.se
...return Ok(Self); } let Ok(TypedHeader(Authorization(bearer))) = TypedHeader::<Authorization<Bearer>>::from_request_parts(parts, state).await else { eprintln!("Could not get Authorization header from the request"); return Err(StatusCode::UNAUTHORIZED); }; match check_auth(bearer) { Ok(auth) => { // Set `auth` as a request extension so it can be accessed by other...
Rust Walkthroughs 2023-12-06 ~18 min read
siciarz.net
...RedisResult<Leaderboard> = conn.zrevrange_withscores("leaderboard", 0, n - 1); match result { Ok(board) => { println!("----==== Top {} players ====----", n); for (i, (username, score)) in board.into_iter().enumerate() { println!("{:<5} {:^20} {:>4}", i + 1, username, score); } }, Err(_) => println!("Failed to fetch leaderboard."), } } The Leaderboard alias is there just to simplify the result...
24 Days of Rust continues! 2014-12-22 ~3 min read
blog.veeso.dev
...Option<&str>) -> anyhow::Result<Vec<CoreId>> { let available_cores = core_affinity::get_core_ids().ok_or(anyhow::anyhow!("Failed to get available cores"))?; for core in &available_cores { tracing::info!("Available core: {}", core.id); } match range.map(parse_range_usize) { None => Ok(available_cores), Some(Err(err)) => Err(err), Some...
Observations/Thoughts 2024-07-10 ~3 min read
nitschinger.at
...1 let external_temp_sensor = Tsic::new(pin); Now we can ask it for a temperature reading and match on the results: 1 2 3 4 5 match external_temp_sensor.read(&mut timer) { Ok(t) => defmt::info!("Temp is: {:f32}", t.as_celsius()), Err(TsicReadError::ParityCheckFailed) => defmt::warn!("Parity...
Learn More Rust 2020-09-30 ~14 min read
"I did manage to get this compile in the end - does anyone else find that the process of asking the question well on a public forum organizes their tho..."

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.