HomeBlogSeriesTips & TricksNotes

Discover practical insights and clever solutions across languages like Go, Rust, and others. Join our community by sharing your tips and tricks—let’s grow together!

  • All (6)
  • Go (3)
  • Rust (2)
  • Postgres (1)

Flattening Options in Rust: flatten and and_then

Learn how to work with nested Option types in Rust using flatten and and_then for cleaner, more concise code.

rust

Using include_str!() and include_bytes!() for Compile-Time File Embedding

Learn how to embed file content at compile time in Rust using include_str!() and include_bytes!() macros.

rust
rocket

© 2023 KungFuDev made with love / cd 💜

Heavily inspired/copied from shuttle.rs