rx_core_operator_enumerate

Crates.iorx_core_operator_enumerate
lib.rsrx_core_operator_enumerate
version0.2.0
created_at2026-01-19 14:03:17.36526+00
updated_at2026-01-24 15:05:58.494624+00
descriptionenumerate operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054661
size13,809
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_enumerate

crates.io ci codecov license

Attach a running index to each emission.

See Also

Example

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
Commit count: 652

cargo fmt