| Crates.io | rx_core_operator_enumerate |
| lib.rs | rx_core_operator_enumerate |
| version | 0.2.0 |
| created_at | 2026-01-19 14:03:17.36526+00 |
| updated_at | 2026-01-24 15:05:58.494624+00 |
| description | enumerate operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054661 |
| size | 13,809 |
Attach a running index to each emission.
Into.Never signals into concrete types.cargo run -p rx_core --example operator_enumerate_example
let _subscription = (10..=15)
.into_observable()
.enumerate()
.subscribe(PrintObserver::new("enumerate_operator"));
Output:
enumerate_operator - next: (10, 0)
enumerate_operator - next: (11, 1)
enumerate_operator - next: (12, 2)
enumerate_operator - next: (13, 3)
enumerate_operator - next: (14, 4)
enumerate_operator - next: (15, 5)
enumerate_operator - completed
enumerate_operator - unsubscribed