Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.
-
Updated
May 20, 2025 - Rust
Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.
Provides many useful tools related to tuples
Enhance Rust errors with file and line details using the `#[wherr]` macro for clearer debugging.
A Rust crate that defines the ToBoundedStatic and IntoBoundedStatic traits
Extensions for the rust Standard library and Tokio.
Rust crate that provides the Partial trait, and an optional macro to mirror a struct, wrapping each field in an Option.
A general purpose sum type with three cases: the enum `Among` with variants `Left`, `Middle` and `Right`. A three-way counterpart to `Either`, with `no_std`, `serde`, `futures` and `tokio` integrations.
Prevents AI assistants from suggesting outdated Rust code patterns
A macro to clone variables into the current scope shadowing old ones.
Rust library providing ranged types and math for integers, floats, and durations
The easiest and most intuitive error handling solution.
OptionCell: OnceCell but derivable from Option
encapsulate the act of deriving a struct from a reference
A collection of helper attribute macros for trait patterns
Rust macro crate for generating repetitive code
Get your own Any with support for casting to trait objects.
A trait for libraries that abstract over any executor
A simple compile-time derive macro to create type-to-value maps in the Rust programming language
Add a description, image, and links to the rust-patterns topic page so that developers can more easily learn about it.
To associate your repository with the rust-patterns topic, visit your repo's landing page and select "manage topics."