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

```rust #[derive(Add, Sum)] struct A { i: T } #[derive(Add, Sum)] struct B { a: A } ``` ``` error[E0277]: cannot add `T` to `T` --> main.rs:7:15 | 7 |...

Is there a reason why when using `#[mul(forward)]` it does not implement both?

Resolves #357 ## Synopsis Generated documentation is incorrect, see issue ## Solution Ensure `stringify!` happens after `quote!` interpolation ## Checklist - [ ] Documentation is updated (if required) - [...

Just like `Option` has `is_some_and()`, could we have a `is_variant_and()` derive? I may try making a pull request, but I don't think I know enough to actually do everything

enhancement
help wanted

Hopefully the issue title is fairly self-explanatory. Is this a desirable feature? This could take the form of an optional `track_caller` feature.

the following code fails to compile ``` #[derive(derive_more::Debug)] struct Message { inner: Box, } fn main() {} ``` ``` error[E0275]: overflow evaluating the requirement `Message: Debug` --> src/main.rs:1:10 | 1...

Follows #377 ## Synopsis At the moment, the following example: ```rust #[derive(Debug, Display)] #[display("{self:?}")] enum Enum { #[display("A {_0}")] A(i32), #[display("B {}", field)] B { field: i32 }, C, }...

bug

The issue is seen in https://docs.rs/derive_more/latest/derive_more/derive.AsMut.html# Here's a screenshot: ## Suggestion? It might be this place: ```diff diff --git a/impl/src/lib.rs b/impl/src/lib.rs index eeccdb0..8fc3c7c 100644 --- a/impl/src/lib.rs +++ b/impl/src/lib.rs @@ -134,7...

docs

For example when tried to apply `#[allow(clippy::too_many_arguments)]` it has no effect. But it works for `Debug`. ``` use derive_more::Constructor; #[allow(clippy::too_many_arguments)] #[derive(Debug, Constructor)] struct Test{ a: u64, b: u64, c: u64,...

help wanted

I’m working with a third-party crate which defines a `ClientError` type and a `From

enhancement
help wanted