fortress-build / whirlwind

🌀 Ridiculously fast, fully asynchronous, sharded hashmap for Rust.
https://crates.io/crates/whirlwind
Apache License 2.0
441 stars 5 forks source link

feat: add iterators #4

Closed willothy closed 3 weeks ago

willothy commented 3 weeks ago

[!IMPORTANT] Add Iter struct and implement Iterator trait for ShardMap to support iteration over key-value pairs.

  • Behavior:
    • Add Iter struct in src/iter.rs to iterate over ShardMap key-value pairs.
    • Implement Iterator trait for Iter to support iteration.
    • Add iter() method to ShardMap in src/shard_map.rs to return an Iter instance.
  • Tests:
    • Add test_iter and test_iter_empty in src/iter.rs to verify iterator functionality.
  • Misc:
    • Add read_sync() and write_sync() methods to Shard in src/shard.rs for synchronous access.
    • Remove path filters from .github/workflows/rust.yml for pull requests.

This description was created by Ellipsis for bf7ffd833af6bd699e95579b600cfce005a03f7c. It will automatically update as commits are pushed.