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.
Macro for sealing traits and structures
A Rust crate that defines the ToBoundedStatic and IntoBoundedStatic traits
Provides many useful tools related to tuples
Enhance Rust errors with file and line details using the `#[wherr]` macro for clearer debugging.
Sort slices in const items.
Get your own Any with support for casting to trait objects.
Rust crate that provides the Partial trait, and an optional macro to mirror a struct, wrapping each field in an Option.
This is a simple application for training patterns. The app cans calculate sum for product, warehouse, shop with Composite pattern. Also, you can create your providers. For them, you can create responsible people who will say you very useful information. It was created using a pattern Fabric. Write your results with "writer" who was created usin…
A macro to clone variables into the current scope shadowing old ones.
A collection of helper attribute macros for trait patterns
Extensible pattern matching in Rust
Convenient assertion macros that print the failed expressions and their evaluated values
Provides traits for chaining Result operations with different error types WITHOUT the need for intermediate map_err calls.
The easiest and most intuitive error handling solution.
Regular and reference-counted type handles for Rust
asynchronous and synchronous interfaces and persistence implementations for your OOD architecture
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."