Language

Package: rust-derive-more @ 0.99.11

Synopsis

Adds derive macros for more traits

Description

Rust has lots of builtin traits that are implemented for its basic types, such as Add, Not, From or Display. However, when wrapping these types inside your own structs or enums you lose the implementations of these traits and are required to recreate them. This is especially annoying when your own structures are very simple, such as when using the commonly advised newtype pattern (e.g. MyInt(i32)).

This library tries to remove these annoyances and the corresponding boilerplate code. It does this by allowing you to derive lots of commonly used traits for both structs and enums.

Home page
https://github.com/JelteF/derive_more
Location
gnu/packages/crates-io.scm (line: 6885, column: 2)
License

Lint warnings

LinterMessageLocation
No lint warnings