Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.
-
Updated
Jun 13, 2022 - Rust
Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.
Enhance Rust errors with file and line details using the `#[wherr]` macro for clearer debugging.
Provides many useful tools related to tuples
A Rust crate that defines the ToBoundedStatic and IntoBoundedStatic traits
Rust crate that provides the Partial trait, and an optional macro to mirror a struct, wrapping each field in an Option.
A macro to clone variables into the current scope shadowing old ones.
The enum Among with variants Left, Middle and Right is a general purpose sum type with three cases.
OptionCell: OnceCell but derivable from Option
The easiest and most intuitive error handling solution.
Extensions for the rust Standard library and Tokio.
Extensible pattern matching in Rust
A simple compile-time derive macro to create type-to-value maps in the Rust programming language
A collection of helper attribute macros for trait patterns
Get your own Any with support for casting to trait objects.
asynchronous and synchronous interfaces and persistence implementations for your OOD architecture
encapsulate the act of deriving a struct from a reference
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."