github.com
...SomeTrait does not implement SomeTrait" - no indication that the
non-object-safe method were to blame, only a failure in trait matching.
Another advantage of this proposal is that it implies that all
method-calls can always be rewritten into an equivalent [UFCS]
call. This simplifies the "core language" and...
RFC 255
RFC
2014-09-22
~6 min read
varkor.github.io
...this3:
surface! {
expr1;
bubble! expr2.bind(|a| {
expr3;
bubble! expr4.bind(|b| {
expr5;
expr6(a, b);
Monad::unit(expr7)
})
})
}
where bubble! expr desugars to:
match expr {
ControlFlow::Return(_) => return expr,
ControlFlow::Break(Some(_)) => break expr,
ControlFlow::Break(None) => break,
ControlFlow::Continue => continue,
ControlFlow::Value(_) => expr,
// We'd also want `Yield...
News & Blog Posts
2018-11-13
~6 min read
pranitha.dev
...We call varmap_loaded.load() to read the file and populate the VarMap with the saved weights and biases
The model architecture (here NeuralNetwork::new(2, 2)) needs to match the original saved model exactly. If the architecture doesn't match, the loading will fail because the parameter shapes won...
Observations/Thoughts
2025-11-05
~24 min read
phildawes.net
...The thread spawning is currently removed from the codebase, which means that racer will sometimes panic and fail to produce matches. As an alternative to wrapping libsyntax calls I've been spending time removing panics from Rust's libsyntax itself in the last few weeks. If you want to follow...
Project Updates
2015-04-13
~2 min read
iohk.io
...our team, learn more about our projects, and get a real sense of our culture and ways of working.Offer03If it’s a good match, we'll move to offer, complete a background check, and prepare to welcome you through onboarding.From day one, we want you to feel informed...
Rust Jobs
2020-10-28
~2 min read
therealprof.github.io
...u1,
#[doc = "Bit 3 - Address match interrupt enable (slave only)"]
addrie: u1,
#[doc = "Bit 4 - Not acknowledge received interrupt enable"]
nackie: u1,
#[doc = "Bit 5 - STOP detection Interrupt enable"]
stopie: u1,
#[doc = "Bit 6 - Transfer Complete interrupt enable"]
tcie: u1,
#[doc = "Bit 7 - Error interrupts enable"]
errie: u1,
#[doc = "Bits...
Call for Blog Posts
2020-09-23
~6 min read
serokell.io
...Rust has a very powerful tool in match statements to do this:
fn fizzbuzz (number: u32) -> String {
match (number % 3, number % 5) {
(0, 0) => "fizzbuzz".to_string(),
(0, _) => "fizz".to_string(),
(_, 0) => "buzz".to_string(),
(_, _) => number.to_string()
}
}
Since text in quotes is a string in memory, or str in...
Learn Standard Rust
2020-08-18
~14 min read
rust.code-maven.com
...If the compiler encounters prompt! with two parameters, this rule will be matched and the macro will be replaced by a call to the prompt function passing the two parameters to it.
($text: expr, $count: expr) => {
prompt($text, $count);
};
The second rule expects only one parameter we called $text and...
Miscellaneous
2023-12-20
~2 min read
www.abetterinternet.org
...Other benefits include excellent health insurance, a 100% match for 401k contributions, and flexible time off and parental leave policies.
Applying
To apply, please submit your resume to: careers@letsencrypt.org
ISRG is an Equal Opportunity Employer. We do not discriminate on the basis of race, color, religion, sex, gender...
Rust Jobs
2020-10-07
~2 min read
chrismacnaughton.com
...To make your app available at /snap/bin/$NAME, you should make sure that the app_name and snap name defined in snapcraft.yaml match. For example:
name: rust-hello # you probably want to 'snapcraft register <name>'
...
apps:
rust-hello:
command: hello
The code used to build this snap is...
Blog Posts
2016-11-22
~2 min read
dawnandrew100.github.io
...DOIMonthly challengeStrobemers are fuzzy matching seeds that offer better tolerance for mutations like insertions and deletions compared to traditional k-mers. They're a great tool for efficient sequence comparison and alignment.Implement your own strobemer generator function in Rust.MinStrobe - Choose subsequent strobes by selecting the minimum hash within...
Newsletters
2025-07-23
~2 min read
unhandledexpression.com
...let i_ = input.clone();
match parser(i_) {
Ok((i,o)) => Ok((i, Some(o))),
Err(Err::Error(_)) => Ok((input, None)),
Err(e) => Err(e),
}
While macros could become complex, the generated code was quite simple, mainly
using nested pattern matching. This made most combinators easy to write,
and the generated...
News & Blog Posts
2019-06-25
~10 min read
amit.prasad.me
...MyTask) {
while let Some(request) = task.rx.recv().await {
// Process the request
match request {
Request::Add(a, b) => {
let result = a + b;
// Send the response back
// ...?
}
}
}
}
// Elsewhere:
let (tx, rx) = mpsc::channel::<Request>();
// Assuming we construct MyTask with `rx`, use `tx`:
tx.send(Request::Add(a, b)).await; // Send a...
Rust Walkthroughs
2024-11-27
~17 min read
gitlab.com
...match select3(
btn_a.wait_for_falling_edge(),
btn_b.wait_for_falling_edge(),
touch.wait_for_falling_edge(),
).await { ... }
When a button is pressed, one of the match arms is executed, allowing us to determine which button it is via Either3:
match { ... } {
Either3::First(_) => BTN_CHAN.send(Button::A...
Rust Walkthroughs
2024-11-13
~16 min read
ideas.reify.ing
...u16,
}
pub async fn get_or_default_light_states() -> LightStates {
match tokio::fs::read_to_string(LIGHT_STATES_FILE_PATH).await {
Ok(json) => match serde_json::from_str(&json) {
Ok(states) => return states,
Err(e) => todo!("warning")
}
Err(e) => todo!("warning")
}
return LightStates::default();
}
pub async fn handle_signal(shared...
Rust Walkthroughs
2024-05-08
~16 min read
guillaumegomez.github.io
...frewsxcv indicated how ChildStd{in,out,err} FDs are closed.
@Aaronepower updated RELEASES.md for 1.21.0.
@thombles improved diagnostics when attempting to match tuple enum variant with struct pattern.
@napen123 added doc example to HashMap::hasher.
@lucasem made docs improvement in std::sync::{PoisonError, TryLockError}.
@tirr-c made...
News & Blog Posts
2017-09-26
~2 min read
2019.jsconf.eu
...With the characters, we had some pattern-matching going on.We're going to do the same thing. This time, though, we're able to pattern-match on tokens.Now we can say we are sitting on a token that is representing a key word, or representing an identifier. If...
News & Blog Posts
2019-06-25
~21 min read
gethopp.app
...RemoteVideoTrack, output_file: &str) -> io::Result<()> {
let latency = measure_latency(room, track.rtc_track()).await;
write_latency_to_csv(&latency, output_file)?;
Ok(())
}
For each frame, the controller checks if at least 100 out of the first 200 Y-channel samples match the watermark value (0xa). If valid, it records...
Rust Walkthroughs
2025-06-11
~13 min read
rustc-dev-guide.rust-lang.org
...cargo run --release --bin collector profile_local cachegrind +<SHA1> --rustc2 +<SHA2> --exact-match serde_derive-1.0.136 --profiles Check --scenarios IncrUnchanged
Guide to Rustc Development
Book
2024-01-01
~2 min read
www.rotoclone.zone
...Event| {
// this code will be run whenever changes to the content directory are detected
match event {
// The `NoticeRemove` and `NoticeWrite` events are separate from the regular `Remove` and `Write` events;
// they fire immediately as soon as changes to the watched directory are detected, even if the file in
// question is...
Rust Walkthroughs
2021-11-10
~13 min read