Convert by name
Procedural macros to derive std::convert::From and std::convert::Into implementations based on field/variant names.
The crate supports structs and enums only. unions are not supported.
Examples
Deriving From
let point = Point2D ;
let vector = from; // `from` is derived
assert_eq!;
Deriving Into
let point = Point2D ;
let vector: Vec2D = point.into;
assert_eq!;