from-similar 1.0.1

Automatically implements `From` between two structs that are similar.
Documentation
1
2
3
4
5
6
7
8
9
10
use from_similar::FromSimilar;

struct UnitA;

#[derive(FromSimilar)]
// The `#[from]` attribute is missing the required input argument.
#[from()]
struct UnitB;

fn main() {}