Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
pub const fn wrapping_shl(self, rhs: u32) -> Self
...Instead, the behaviour of this method matches what shift instructions do on many processors, and is what the << operator does when overflow checks are disabled, but numerically it's weird. Consider, instead, using Self::unbounded_shl which has nicer behaviour. Note that this is not the same as a rotate...
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_shl(self, rhs: u32) -> Self
...Instead, the behaviour of this method matches what shift instructions do on many processors, and is what the << operator does when overflow checks are disabled, but numerically it's weird. Consider, instead, using Self::unbounded_shl which has nicer behaviour. Note that this is not the same as a rotate...
method core Stable since 1.2.0 Version 1.100.0-nightly
maguire.tech
...There’s a list of Users which are just uuid-name-hash combinations, and of Realms which can match on paths (there’s exact match, regex, etc) and then we can link together users and realms for authentication. For me, this system just makes sense.ConclusionThis project was a blast...
Project/Tooling Updates 2025-10-22 ~9 min read
blog.darklang.com
...both OCaml and Rust are effectively using a pointer to another Expr.But what happens when we get to pattern matching? Well, here's how we do it in OCaml (full version here):(function | state, [DList l; DBlock b] -> let f (dv : dval) : dval = Ast.execute_dblock ~state b [dv...
Observations/Thoughts 2020-08-26 ~15 min read
doc.rust-lang.org
...set_file_name` updates the file name of the `PathBuf` new_path.set_file_name("package.tgz"); // Convert the `PathBuf` into a string slice match new_path.to_str() { None => panic!("new path is not a valid UTF-8 sequence"), Some(s) => println!("new path is {}", s), } } Be sure to...
Rust by Example Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
...Since command line input always arrives as plain text, custom types like LogLevel need a way to be matched against text. Deriving ValueEnum tells Clap which strings map to which variants, by default the lowercased variant names, so --log-level warn selects LogLevel::Warn. Any other value is rejected before...
The Rust Cookbook Book 2024-01-01 ~1 min read
doc.rust-lang.org
pub const fn wrapping_shr(self, rhs: u32) -> Self
...Instead, the behaviour of this method matches what shift instructions do on many processors, and is what the >> operator does when overflow checks are disabled, but numerically it's weird. Consider, instead, using Self::unbounded_shr which has nicer behaviour. Note that this is not the same as a rotate...
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_shr(self, rhs: u32) -> Self
...Instead, the behaviour of this method matches what shift instructions do on many processors, and is what the >> operator does when overflow checks are disabled, but numerically it's weird. Consider, instead, using Self::unbounded_shr which has nicer behaviour. Note that this is not the same as a rotate...
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_shr(self, rhs: u32) -> Self
...Instead, the behaviour of this method matches what shift instructions do on many processors, and is what the >> operator does when overflow checks are disabled, but numerically it's weird. Consider, instead, using Self::unbounded_shr which has nicer behaviour. Note that this is not the same as a rotate...
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_shr(self, rhs: u32) -> Self
...Instead, the behaviour of this method matches what shift instructions do on many processors, and is what the >> operator does when overflow checks are disabled, but numerically it's weird. Consider, instead, using Self::unbounded_shr which has nicer behaviour. Note that this is not the same as a rotate...
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_shr(self, rhs: u32) -> Self
...Instead, the behaviour of this method matches what shift instructions do on many processors, and is what the >> operator does when overflow checks are disabled, but numerically it's weird. Consider, instead, using Self::unbounded_shr which has nicer behaviour. Note that this is not the same as a rotate...
method core Stable since 1.2.0 Version 1.100.0-nightly
doc.rust-lang.org
pub const fn wrapping_shr(self, rhs: u32) -> Self
...Instead, the behaviour of this method matches what shift instructions do on many processors, and is what the >> operator does when overflow checks are disabled, but numerically it's weird. Consider, instead, using Self::unbounded_shr which has nicer behaviour. Note that this is not the same as a rotate...
method core Stable since 1.2.0 Version 1.100.0-nightly
mitchgollub.com
...body); Ok(body) } } /// Parses HTTP method codes from the Lambda Event fn parse_http_method(input_method: &str) -> Method { match input_method { "GET" => Method::Get, "POST" => Method::Post, _ => panic!("No matching HTTP method for {}", input_method), } } Source CodeMy source code is below!  Feel free to use it as a template...
Rust Walkthroughs 2021-06-23 ~3 min read
treit.github.io
...let opt = s.get(1..1000); match opt { Some(slice) => println!("{} - {}", s, slice), None => println!("Did not produce a slice!"), } } This illustrates two possible ways (if let and match) of pattern matching on an Option result and extracting the result, if any. Declarative coding fun with iterators We have examined...
News & Blog Posts 2020-03-17 ~12 min read
jdrouet.github.io
...If we insert Alice, then searching alice won't find it, it's only exact match. This is good for matching email addresses, folder names, etc. The text index, on the opposite, the input data gets processed, but we'll talk about it right after.Once again, we can follow...
Rust Walkthroughs 2025-04-02 ~18 min read
julienblanchard.com
...vec!["user@example.com".to_owned()] }; match enqueue(job) { Ok(job) => println!("Enqueued job: {:?}", job), Err(_) => { } } } Figure 2: Resque screenshot Great! We successfully enqueued a job that can be performed through Resque. Now onto the perform part.
News & Blog Posts 2015-11-02 ~1 min read
doc.rust-lang.org
...Migration The rust_2024_guarded_string_incompatible_syntax lint will identify any tokens that match the reserved syntax, and will suggest a modification to insert spaces where necessary to ensure the tokens continue to be parsed separately. The lint is part of the rust-2024-compatibility lint group which is...
The Rust Edition Guide Book 2024-01-01 ~1 min read
greptime.com
...ident) => { paste! { fn [<eval_ $O>](columns: &[VectorRef]) -> Result<VectorRef> { with_match_primitive_type_id!(columns[0].data_type().logical_type_id(), |$S| { with_match_primitive_type_id!(columns[1].data_type().logical_type_id(), |$T| { with_match_primitive_type_id!(columns[2].data_type().logical_type_id(), |$R| { // clip(a...
Rust Walkthroughs 2025-11-26 ~14 min read
dhruv-ahuja.github.io
...Operation) { let is_empty = queue.len() == 0; let is_full = queue.len() == self.capacity; match operation { Operation::Push { mut is_full_flag } => { let mut is_empty_flag = self.is_empty.lock().unwrap(); if *is_empty_flag { *is_empty_flag = false; println!("set is_empty to false"); self.is_empty_signal...
Rust Walkthroughs 2023-09-06 ~9 min read
crates.io
...Further, the repository will no longer be queried to calculate the version match. Feature flags postgresql_embedded uses feature flags to address compile time and binary size uses. The following features are available: Name Description Default? bundled Bundles the PostgreSQL archive into the resulting binary No blocking Enables the blocking...
Crate v0.22.0 2026-10-21
"It feels like being part of a village that learns to love the dragon it battles."

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.