aptos-iterable-derive

Crates.ioaptos-iterable-derive
lib.rsaptos-iterable-derive
version0.0.1
created_at2026-01-09 00:39:53.763584+00
updated_at2026-01-09 00:39:53.763584+00
descriptionDerives `IntoIterator` implementations and iterator methods for single-field tuple structs
homepagehttps://geomi.dev/
repository
max_upload_size
id2031349
size14,955
(aptos-crates)

documentation

README

Aptos Iterable Derive

Crates.io docs.rs

Derives IntoIterator implementations and iterator methods for single-field tuple structs.

Usage

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.

Commit count: 0

cargo fmt