Readme generated by Bing AI
A Rust crate that provides a macro to implement From and Into traits for similar types.
Add this to your Cargo.toml:
[dependencies] impl-from-into-similar = “0.1.0”
Import the crate and use the impl_from_into_similar!
macro with two or more types that have similar fields:
use impl_from_into_similar::impl_from_into_similar;
struct Foo { x: i32, y: i32, }
struct Bar { x: i32, y: i32, }
impl_from_into_similar!(Foo, Bar);
This project is licensed under the MIT license.