oxi-dd65f4.gitlab.io
...As of July 29, 2026, Oxi's frozen 50-document blind sets score 0.828 SSIM with Word and 44/50 page-count matches in Japanese, and 0.825 with 48/50 page-count matches in English. In the published comparison table, English page-count fidelity is the highest among...
Rust Walkthroughs
2026-08-05
~9 min read
www.lpalmieri.com
...web::Data<PgPool>,
) -> HttpResponse {
let name = match SubscriberName::parse(form.0.name) {
Ok(name) => name,
Err(_) => return HttpResponse::BadRequest().finish(),
};
let email = match SubscriberEmail::parse(form.0.email) {
Ok(email) => email,
Err(_) => return HttpResponse::BadRequest().finish(),
};
let new_subscriber = NewSubscriber { email, name };
match insert_subscriber(&pool, &new_subscriber).await {
Ok...
Rust Walkthroughs
2021-01-06
~19 min read
rust-analyzer.github.io
...during code analysis.
#3722 fix parsing lambdas with return type.
#3724 blame the right queries for memory usage.
#3725 fix TypeScript memory leak on server restart.
#3745 Merge Imports assist correctly handles *.
#3764 fix index out of bounds error during workspace loading.
#3761 Fill Match Arms assist correctly preserves comments.
News & Blog Posts
2020-03-31
~1 min read
rust-analyzer.github.io
#10979 don’t show trait flyimports for impl trait and placeholders.
#10976 show case-insensitive exact matches instead of fuzzy flyimport for short paths.
#10986 fix lint completions not working for unclosed attributes.
#10960 fix handling of macros in extern blocks.
#10957 fix some TryToNav impls not upmapping ranges out...
Project/Tooling Updates
2021-12-15
~1 min read
github.com
...However, if you're using Clippy, this
will cause the `match_same_arms` lint to trip! You can silence the lint in this
spot, and provide an explanation that indicates you are doing so deliberately,
by placing this attribute above the `match` line:
```rust
#[allow(match_same_arms, reason = "The...
RFC 2383
RFC
2018-04-02
~10 min read
system.joekain.com
...I added some debug code to step_over_breakpoint to read back the instruction pointer, using ptrace_util::get_instruction_pointer and added a panic if the two target addresses didn’t match. The panic tripped and reported:
Breakpoint targets don't match:
RIP-1: 555555558ff0
bp: 555555559040
These targets...
News & Blog Posts
2015-09-28
~13 min read
wcgw.dev
...One that is very common in Rust as well, the match statement.
Using match is close to a switch expression in Java and makes use of pattern
matching and destructuring as did the previous example. Here is how this looks like:
let who = match anybody_at_all {
Some(one) => one...
Observations/Thoughts
2023-01-11
~20 min read
pliniker.github.io
...Behold and scorn!
// loop state variables
let mut first_token = true;
let mut after_dot = false;
let mut expect_closeparen = false;
let mut expect_list = true;
loop {
match token {
// Open parenthesis
Some(Token { token: OpenParen, pos }) => {
if expect_closeparen {
return Err(ParseError::new(
pos, String::from("expected close-paren")));
}
if...
News & Blog Posts
2017-03-14
~4 min read
doc.rust-lang.org
...In “The match Control Flow Construct” section in Chapter 6, we discussed that match arms must all return the same type. So, for example, the following code doesn’t work:
The type of guess in this code would have to be an integer and a string, and Rust requires that...
The Rust Programming Language
Book
2024-02-01
~9 min read
docs.rs
...Usage In libraries Libraries should link only to the log crate, and use the provided macros to log whatever information will be useful to downstream consumers: [dependencies] log = "0.4" use log::{info, trace, warn}; pub fn shave_the_yak(yak: &mut Yak) { trace!("Commencing yak shaving"); loop { match find...
Crate
v0.4.34
2026-08-22
pretired.dazwilkin.com
...do-apps-rust 2020-10-08T18:47:56.540626070Z => Matched: GET / (default)
do-apps-rust 2020-10-08T18:47:56.540663254Z => Outcome: Success
do-apps-rust 2020-10-08T18:47:56.543531368Z => Response succeeded.
do-apps-rust 2020-10-08T18:47:56.903673975Z GET /favicon.ico image/avif:
do-apps...
Learn More Rust
2020-10-14
~5 min read
hermanradtke.com
...I found it easiest to use the match keyword when working with these types. There are also combinator functions like map and and_then which allow a set of computations to be chained together. I like to chain combinators together so error logic is separated from the main logic of...
News & Blog Posts
2016-09-20
~11 min read
docs.rs
Prefix trie (tree) datastructure (both a set and a map) that provides exact and longest-prefix matches. Prefix-Trie This crate provides prefix-map and prefix-set collections for IP prefixes and other fixed-width prefix types. PrefixMap is backed by a compact TreeBitMap-style trie and supports exact, longest...
Crate
v0.10.1
2026-07-24
blog.servo.org
...mattnenterprise updated some older Fetch code to match changes to the specification.
beholdnec fixed a shader problem that was breaking Servo on some AMD drivers.
karenher added support for tracking line numbers in the HTML parser.
canaltinova corrected the serialization of overflow properties in CSS.
hiikezoe made animated colors use...
Other Weeklies from Rust Community
2017-01-10
~2 min read
github.com
...Example use ciborium_ll::{Decoder, Header}; use ciborium_io::Read as _; let input = b"\x6dHello, World!"; let mut decoder = Decoder::from(&input[..]); let mut chunks = 0; match decoder.pull().unwrap() { Header::Text(len) => { let mut segments = decoder.text(len); while let Some(mut segment) = segments.pull().unwrap() { let mut buffer...
Crate
v0.2.2
2024-01-24
gliderkite.github.io
...use std::env;
let dataset = match env::args().nth(1) {
Some(path) => path,
_ => panic!("The path of the census file must be specified"),
};
As a final note, the underscore _ you see in the above match is an identifier
that can be used to match anything else (i.e. any other...
Learn Simple Rust
2020-10-21
~30 min read
arzg.github.io
...Open up expr.rs and scroll down to that todo!() we added earlier:impl Expr {
pub(crate) fn eval(&self) -> Val {
match self {
Self::Number(Number(n)) => Val::Number(*n),
Self::Operation { lhs, rhs, op } => {
let Number(lhs) = lhs;
let Number(rhs) = rhs;
let result = match op {
Op::Add => lhs...
Learn More Rust
2020-10-07
~27 min read
rust-analyzer.github.io
...14004 don’t escape non-snippets in Move const to impl.
#14011 fix Unwrap block for let statements.
#14037 handle boolean scrutinees better in Match to if-let assist.
#14039 make Add missing impl members work for impls inside blocks.
#14038 don’t fail workspace loading if sysroot can’t...
Project/Tooling Updates
2023-02-01
~1 min read
doc.rust-lang.org
pub trait Not
...use std::ops::Not;
#[derive(Debug, PartialEq)]
enum Answer {
Yes,
No,
}
impl Not for Answer {
type Output = Self;
fn not(self) -> Self::Output {
match self {
Answer::Yes => Answer::No,
Answer::No => Answer::Yes
}
}
}
assert_eq!(!Answer::Yes, Answer::No);
assert_eq!(!Answer::No, Answer::Yes);
trait
core
Stable since 1.0.0
Version 1.100.0-nightly
hermanradtke.com
...loop {
match self.sock.try_read_buf(&mut recv_buf) {
// the socket receive buffer is empty, so let's move on
// try_read_buf internally handles WouldBLock here too
Ok(None) => {
debug!("CONN : we read 0 bytes");
break;
},
Ok(Some(n)) => {
debug!("CONN : we read {} bytes", n);
// if we read...
From the Blogosphere
2015-07-27
~7 min read