Expand description
§Python-like Iteration Utilities
Provides familiar Python-style iteration patterns in Rust with zero-cost abstractions and compile-time optimizations.
§Modules
range- Python-like ranges with.to()and.by()syntax- [
enumerate] - Index-value iteration like Python’senumerate() comprehension- List/dict comprehensions with.when()/.then()syntax
§Examples
use webrust::prelude::*;
§fn example() {
// Ranges for i in 0.to(10) { } // range(10) for i in 0.to(10).by(2) { } // range(0, 10, 2)
// Enumerate for (index, item) in enumerate(&items) { }
// Comprehensions
let squares: Vec
§}
Re-exports§
pub use enumerate::enumerate;pub use comprehension::*;pub use range::*;
Modules§
- comprehension
- Python-like List and Dictionary Comprehensions
- enumerate
- Python-style Enumerate Function
- range
- Python-like Ranges in Rust