Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
uwheel.rs
...if let Some(rewritten) = self.try_rewrite(&plan) { Ok(Transformed::yes(rewritten)) } else { Ok(Transformed::no(plan)) } } Internally, the rewriter looks for temporal patterns and aggregation functions that match the stored wheel indices. If there is a match then the target wheel is queried and the aggregate result gets stored...
Observations/Thoughts 2024-08-21 ~4 min read
sjames.github.io
...Sized + ASN1GenType, { type Target = T; fn deref(&self) -> &T { match self.0 { AllocatedData::Asn1CodecAllocated(p) => unsafe { &*p as &T }, AllocatedData::RustAllocated(p) => unsafe { &*p as &T }, } } } impl<T> DerefMut for ASNBox<T> where T: Sized + ASN1GenType, { fn deref_mut(&mut self) -> &mut T { match self.0 { AllocatedData::Asn1CodecAllocated(p) => unsafe...
News & Blog Posts 2020-05-12 ~18 min read
hugopeters.me
...Plug<B> + Generic1; } impl<A> Functor for Option<A> { fn fmap<B>(&self, f: &dyn Fn(&<Self as Generic1>::I) -> B) -> <Self as Plug<B>>::R { // Apply the function over the contained value, if there is one match self { None => None, Some(v) => Some(f(v)), } } } Applicative This one is...
Rust Walkthroughs 2021-12-08 ~5 min read
johns.codes
...match readline { Ok(line) => { match SqlQuery::parse_from_raw(line.as_ref()) { Ok(q) => println!("{q:?}"), Err(e) => eprintln!("{e:?}"), } } Now we can finally type some stuff and have different things come back.>> select col1 from foo; (LocatedSpan { offset: 21, line: 1, fragment: "", extra: () }, Select(SelectStatement { tables: ["foo"], fields: ["col1...
Rust Walkthroughs 2023-01-04 ~14 min read
www.youtube.com
...those features in multiple images for matching and then once we perform matching we get kind of that image in the top right where you have some features in one image and the features in another image and we've kind of matched them figured out which ones are the...
Video 2021-09-30
smallcultfollowing.com
...In particular, types that implement Debug will prefer impl I.Another way to express the rule is to say that impls can specialize one another in two ways:if the types matched by one impl are a subset of the other, ignoring where clauses altogether;otherwise, if the types matched...
Blog Posts 2016-10-25 ~17 min read
github.com
...fn macros() { // Existing let vec = js_path("$.values[?match(@, $.regex)]", &json)?; // New let q_ast: JpQuery = ::jsonpath_rust::json_query!($.values[?match(@, $.regex)]); } This allows for query strings to be created infallibly at compile time for applications where query strings will be static strings in source code. Limitations Of Compiled...
Crate v1.0.13 2026-11-14
gfx-rs.github.io
...We were especially interested in finding projects matching the following criteria: Open-source: allows us to easily debug issues and add or modify existing macOS window and surface support Already using Vulkan for rendering: allows us to simply load gfx-portability on macOS in place of a Vulkan driver on...
News & Blog Posts 2018-09-04 ~3 min read
mhamza.dev
...Now, imagine you want to call this function from JavaScript, passing in an object that matches the structure of Data: do_work({ key_id: 'key_id', name: 'name', }); Unfortunately, this pattern is not currently possible with wasm-bindgen due to the restrictions it imposes. It requires the object passed to...
Project/Tooling Updates 2023-06-21 ~3 min read
www.ralfj.de
...The same also happens with match statements: let ptr = std::ptr::null::<i32>(); match *ptr { _ => "happy" } // This is fine! match *ptr { _val => "not happy" } // This is UB. The scrutinee of a match expression is a place expression, and if the pattern is _ then a value is never constructed. However, when...
Observations/Thoughts 2024-08-21 ~11 min read
jyn.dev
...Enums without pattern matching are very painful to work with and pattern matching without enums has very odd semantics Result and Iterators are impossible to implement without generics (or duck-typing, which I think of as type-erased generics) Send/Sync, and the preconditions to println, are impossible to encode...
Observations/Thoughts 2025-08-27 ~7 min read
bheisler.github.io
...u64) -> u64 { match n { 0 => 1, 1 => 1, n => fibonacci(n-1) + fibonacci(n-2), } } fn criterion_benchmark(c: &mut Criterion) { c.bench_function("fib 20", |b| b.iter(|| fibonacci(20))); } criterion_group!(benches, criterion_benchmark); criterion_main!(benches); Finally, run this benchmark with cargo bench. You should see output...
News & Blog Posts 2018-01-16 ~5 min read
rust-analyzer.github.io
#11461 (first-contribution) filter generics in Extract struct from enum variant. #11531 (first contribution) make fill_match_arms assist handle #[doc(hidden)] and #[non_exhaustive]. #11535 (first contribution) add install instructions for Kakoune and Helix. #11524 (first contribution) state that only the latest stable toolchain is officially supported. #11424 pass...
Project/Tooling Updates 2022-03-02 ~1 min read
crates.io
...If we implemented such without caring about background tasks, then this implementation will not match with the tokio's original implementation. Features Serde Support ( serde feature flag) Worker and NodeJS Support Test Utilities
Crate v0.4.5 2026-11-06
www.ncameron.org
...The first rename matches, so we rename to x[4](), then we add the two marks: x[4](1, 2). Neither of the later two renames match, so we end up with the resolved name x[4]. Now consider y[2]. In this case the first rename does not match...
News & Blog Posts 2015-11-09 ~11 min read
docs.rs
...InitState> I => BuilderField<I, T> } // matching on the type-level `InitState` enum by using `InitWit`. // `WITNESS` comes from the `HasTypeWitness` trait match I::WITNESS { // `te: TypeEq<FooInit, Init>` InitWit::InitW(te) => { te.map(HelperFn::NEW) //: TypeEq<BuilderField<I, T>, T> .to_right(maybe_init) } InitWit::UninitW(_) => else_(), } } // Emulates a type...
Crate v1.15.2 2026-04-14
deislabs.io
...Because recursion requires a concrete type that matches that trait bound, everything else in the whole call stack now had to match those specific concrete types. You can get around this with Boxing, but that is noisy and annoying. To be clear: this isn’t so much a problem to...
Observations/Thoughts 2020-12-16 ~15 min read
www.jessestuart.ca
...Next up was considering using an enum with all the possible trait implementors, but then I’d have to match the concrete type for every operation which very quickly gets too complex. The use case involved composing all the implementors of the aforementioned trait to act as a single implementor...
Observations/Thoughts 2025-10-15 ~5 min read
docs.rs
Implementation of Cookie storage and retrieval Provides an implementation for storing and retrieving Cookie s per the path and domain matching rules specified in RFC6265 . Features preserve_order - uses indexmap::IndexMap in lieu of HashMap internally, so cookies are maintained in insertion/creation order public_suffix - Add support for public...
Crate v0.22.1 2026-02-16
arXiv arxiv.org
...Furthermore, we design different agent systems to match the strengths and weaknesses of different LLMs (o4-mini, GPT-5, Sonnet 4, and Sonnet 4.5). Our study shows that different tools and agent settings are needed to stimulate the system-verification capability of different types of LLMs. The best LLM...
Operating Systems Chenyuan Yang, Natalie Neamtu, Chris Hawblitzel et al. 2025-12-20 arXiv:2512.18436
"Code doesn't deal with resources until it does. Similarly with everything else that forces you to reason about control flow - you don't care about thr..."

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.