Skip to content

ShadedSauce/impl-from-into-similar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme generated by Bing AI

impl-from-into-similar

A Rust crate that provides a macro to implement From and Into traits for similar types.

Installation

Add this to your Cargo.toml:

[dependencies] impl-from-into-similar = “0.1.0” 

Usage

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); 

License

This project is licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages