rx_core_operator_find_index

Crates.iorx_core_operator_find_index
lib.rsrx_core_operator_find_index
version0.2.0
created_at2026-01-19 15:13:24.861381+00
updated_at2026-01-24 15:07:18.217738+00
descriptionfind_index operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054790
size15,401
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_find_index

crates.io ci codecov license

Emit the index of the first value that matches a predicate.

See Also

Example

cargo run -p rx_core --example operator_find_index_example
let _subscription = (1..=5)
    .into_observable()
    .find_index(|i| i % 2 == 0)
    .subscribe(PrintObserver::new("find_index_operator"));

Output:

find_index_operator - next: 1
find_index_operator - completed
find_index_operator - unsubscribed
Commit count: 652

cargo fmt