Easy conversion between structs and tuples
Mainly developed as derive macro for intuple, but can also be used as standalone library with less features.
IntupleLite derive features:
🐍 convert structs into/from tuples - via std From<_> and Into<_>
🦥 ignore specific fields - via #[igno]
🦊 easy access to the resulting tuple type of the struct
See intuple (crates.io/github) if you also need:
🦆 recursion 🦝 distinct traits with own functions
Standalone Usage
🐠 add intuple_derive to the dependencies in the Cargo.toml:
[]
= "0.1.0"
🦀 use/import everything into rust:
use *;
🦚 goes both ways:
Tuple Type
🦊 access the resulting tuple type of a struct easily:
Ignoring
🦥 ignore specific fields with #[igno]
🐼 ignored fields need/use Default while converting to a struct
More Features
🦊 For more features, use intuple (crates.io/github)