Rust loves Elixir, and so do we!
Check out an #exampleProject that aims to create a #Rust NIF that crops an image and makes it grayscale to show you a way to run your #RustCode from #Elixir efficiently.
Look how simple it is!
--
#programming#tutorial
🦀 Writing cleaner if let chains in Rust? Some combos are magic, others won’t compile.
Here’s what works, what doesn’t — and the slickest patterns pros use every day.
Let’s break it down:
#RustLang#RustTips#100DaysOfRust
Thread 🧵
2️⃣ ❌ Multiple let bindings in one if? Nope (on stable)
if let Some(x) = a && let Some(y) = b { ... }
Doesn’t compile — stable Rust doesn't support multi-let chaining yet.
3️⃣ ✅ Want multi-pattern matching?
Use tuple destructuring:
if let (Some(x), Some(y)) = (a, b) {
if y > 10 { println!("{x}, {y}"); }
}
Clean, expressive, and stable.
#RustCode#DevTips
Does anyone know a #RustCode developer looking to collab on an #NFT project?
I want to build with $CSPR, but I am more on the art and story side than the code side.