tuple_unpack

Crates.iotuple_unpack
lib.rstuple_unpack
version1.0.1
sourcesrc
created_at2022-08-19 00:04:45.106889
updated_at2022-08-19 00:23:36.099164
descriptionUnpack tuples
homepagehttps://github.com/lylythechosenone/tuple_unpack
repositoryhttps://github.com/lylythechosenone/tuple_unpack
max_upload_size
id648426
size418,839
(lylythechosenone)

documentation

README

tuple_unpack

Unpack Rust tuples.

Usage

use tuple_unpack::TupleUnpack;
fn main() {
    let some_tuple = (1, 2, 3);
    let types = some_tuple.unpack_types();
    assert_eq!(types, vec![TypeId::of::<i32>; 3]);
    let values = some_tuple.unpack_values();
    assert_eq!(values, vec![1, 2, 3]);
}
Commit count: 5

cargo fmt