More Spout2 on Linux dev in 1 hour~
What do you mean I need to learn Vulkan now?!
▶️ youtube.com/live/UlMdGBd...
#VTuber #ENVTuber #Linux
More Spout2 on Linux dev in 1 hour~
What do you mean I need to learn Vulkan now?!
▶️ youtube.com/live/UlMdGBd...
#VTuber #ENVTuber #Linux
Have you ever run into the Any trait browsing library code and didn't know what it was for? Or have you found yourself needing to interpret a trait object at runtime into a concrete type?
Let's learn about Any and downcasting 🧵👇
Have you ever run into the Any trait browsing library code and didn't know what it was for? Or have you found yourself needing to interpret a trait object at runtime into a concrete type?
Let's learn about Any and downcasting 🧵👇
✨time ✨
I started using this recently as a lighter alternative to chrono. There's no unsafe and it has a really clean API. Found it really good for basic formatting, parsing, and date arithmetic. It’s faster in some benchmarks too.
📦 Crates:
✨time ✨
I started using this recently as a lighter alternative to chrono. There's no unsafe and it has a really clean API. Found it really good for basic formatting, parsing, and date arithmetic. It’s faster in some benchmarks too.
📦 Crates:
Why is the drop trait useful? When should you use it?
Simply put, rust’s Drop trait lets you customize what happens when an object goes out of scope, think of it as a destructor in other languages.
Let's explore it in detail 🧵 👇
Why is the drop trait useful? When should you use it?
Simply put, rust’s Drop trait lets you customize what happens when an object goes out of scope, think of it as a destructor in other languages.
Let's explore it in detail 🧵 👇
✨anyhow ✨
Complimentary to thiserror, anyhow gives you a quick way to propagate errors without caring about the type, just use Result
📦 Crates: crates.io/crates/anyhow
✨anyhow ✨
Complimentary to thiserror, anyhow gives you a quick way to propagate errors without caring about the type, just use Result
📦 Crates: crates.io/crates/anyhow
Rust’s Deref trait lets you customize how your type behaves when dereferenced.
It’s what makes smart pointers like Box
Let's explore it in detail 🧵 👇
Rust’s Deref trait lets you customize how your type behaves when dereferenced.
It’s what makes smart pointers like Box
Let's explore it in detail 🧵 👇
Ever wondered how to create a type that depends on another type but doesn't actually contain it?
Let's explore PhantomData with a practical example of a course grading system! 👇 🧵
Ever wondered how to create a type that depends on another type but doesn't actually contain it?
Let's explore PhantomData with a practical example of a course grading system! 👇 🧵
Box
Here's a basic example with our student example.
Let’s break down further why and when to use it 🧵 👇
Box
Here's a basic example with our student example.
Let’s break down further why and when to use it 🧵 👇
theonion.com/man-returns-...
theonion.com/man-returns-...