derive_more icon indicating copy to clipboard operation
derive_more copied to clipboard

Some more derive(Trait) options

Results 113 derive_more issues
Sort by recently updated
recently updated
newest added
trafficstars

This removes a match arm that will never be triggered for non empty enums. So now only if their are no arms in the enum will the code for empty...

enhancement

## Synopsis `Debug` and `Display` derives allow referring fields via short syntax (`_0` for unnamed fields and `name` for named fields): ```rust #[derive(Display)] #[display("{_0:o}")] struct OctalInt(i32); ``` The way this...

Hello, it would be helpful if deriving an implementation of `std::borrow::Borrow` is supported.

enhancement
help wanted
new derive

Hi, this is my crate: https://crates.io/crates/light_enum. Are you interested in a pull request that adds its 2 `Derive `keywords (`LightEnum` and `Values`) ? `Values `could be renamed into `Array`. I...

enhancement
moreinfo
new derive

I made `TryUnwrap` returns a dedicated error as `Err`, but in practice, I guess there are cases where this is not desired. Sometimes, you will only be interested in the...

enhancement
help wanted

I would love to migrate some libraries from the unmaintained [derivative](https://lib.rs/crates/derivative) to this crate, but it is missing deriving Default with custom values. If the "custom bound" functionality from https://mcarton.github.io/rust-derivative/latest/Default.html...

enhancement
help wanted
new derive

## Proposal Add a `#[add(types(..))]` and `#[add(forward)]` attributes (the same way it works for `From` and `Into`) for `Add`, `AddAssign`, `Sub`, `SubAssign`, `Mul` and `MulAssign` macros It will help to...

enhancement
help wanted

This is something the standard library does, for example for String: https://doc.rust-lang.org/src/alloc/string.rs.html#2645 Basically, the derive would just wrap a `Clone` call. This allows functions taking `Into` to also take `&T`....

enhancement
help wanted

This would require you to put the correct attributes on each enum variant, same as for the struct derive: We would maybe need to be able to specify the actual...

enhancement
help wanted

When one has a metadata field attached for e.g. better error messages I'd like to be able to derive `PartialEq, ...` but skip fields like with e.g. `Debug`. (It might...

enhancement
help wanted