| Crates.io | aptos-iterable-derive |
| lib.rs | aptos-iterable-derive |
| version | 0.0.1 |
| created_at | 2026-01-09 00:39:53.763584+00 |
| updated_at | 2026-01-09 00:39:53.763584+00 |
| description | Derives `IntoIterator` implementations and iterator methods for single-field tuple structs |
| homepage | https://geomi.dev/ |
| repository | |
| max_upload_size | |
| id | 2031349 |
| size | 14,955 |
Derives IntoIterator implementations and iterator methods for single-field tuple structs.
use aptos_iterable_derive::Iterable;
use std::collections::HashMap;
#[derive(Iterable)]
struct Config(HashMap<String, String>);
let config = Config(HashMap::new());
// Use in for loops
for (key, value) in &config { }
// Or iter() and iter_mut()
config.iter();
The struct must be a tuple struct with exactly one field that implements IntoIterator.