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

As was initially proposed in #87, it would be very useful to have a general way of deriving for enums. The basic idea is that when there's an enum we...

enhancement
help wanted
new derive

We can currently forward `From`, but not `TryFrom`. Implementing this for a single field would be fairly easy. For multiple fields this would be harder/impossible, because we would have to...

I'm not sure if this has been proposed before, but has there been any thought to implementing support for deriving the `Read` and `Write` traits from `std::io`? I think it...

enhancement
help wanted
new derive

I'm not sure this would be necessary for all traits, but I've had enough trouble with at least `From` and `Display` vs. generics that it might be useful for at...

The only place where this is currently done is FromStr: https://jeltef.github.io/derive_more/derive_more/from_str.html

docs

To improve ergonomics, instead of requiring specific datatypes instead use `Into` for those datatypes. So instead of something like ``` impl MyInts { fn new(__0: i32, __1: i32) -> MyInts...

enhancement
help wanted

While derived `From` and `AsRef` already remove some boilerplate when defining newtypes, it would be convenient to have a more specialized "newtype" trait that would give access to the inner...

Fixes #195 similar to https://github.com/dtolnay/thiserror/pull/182

enhancement

Hello and thanks for the great work to every contributor. I was thinking, however rare, but maybe bitwise derives are missing for custom flag types (unnamed structs of bools or...

enhancement
help wanted
new derive

@tyranron @ilslv The tests started failing with the most recent rust nightlies because of this: https://github.com/rust-lang/rust/pull/99431 Could you spend some time to fix it and use the Provider API instead?...

bug
priority