Skip to main content

into_parts/
lib.rs

1//! This crate provides the `IntoParts` trait, which allows decomposing a type into its parts.
2//!
3//! Typically, this is used in conjunction with the `IntoParts` derive macro
4//! to easily convert a struct into a tuple of its fields.
5
6mod into_parts;
7
8/// Re-export of the `IntoParts` trait.
9pub use into_parts::IntoParts;
10
11/// Re-export of the `IntoParts` derive macro.
12#[cfg(feature = "derive")]
13pub use into_parts_derive::IntoParts;