deriving_via

This library is a slightly more convenient version of derive_more.

Example

In this example, the Inner does not derive the Eq or Display, but Outer derives them through the i32.

```rust use deriving_via::DerivingVia;

[derive(DerivingVia)]

pub struct Inner(i32);

[derive(DerivingVia)]

[deriving(Eq(via = i32), Display(via = i32))]

pub struct Outer(Inner);

fn main() { let x = Outer(Inner(42)); let y = Outer(Inner(42));

println!("{x} == {y} => {}", x == y);
// 42 == 42 => true

} ```

Available Derives