Crates.io | tuple_unpack |
lib.rs | tuple_unpack |
version | 1.0.1 |
source | src |
created_at | 2022-08-19 00:04:45.106889 |
updated_at | 2022-08-19 00:23:36.099164 |
description | Unpack tuples |
homepage | https://github.com/lylythechosenone/tuple_unpack |
repository | https://github.com/lylythechosenone/tuple_unpack |
max_upload_size | |
id | 648426 |
size | 418,839 |
Unpack Rust tuples.
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]);
}