rx_core_operator_pairwise

Crates.iorx_core_operator_pairwise
lib.rsrx_core_operator_pairwise
version0.2.0
created_at2026-01-19 18:00:12.44648+00
updated_at2026-01-24 15:09:08.3335+00
descriptionpairwise operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2055030
size13,812
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_pairwise

crates.io ci codecov license

Emit the previous and current values together.

See Also

Example

cargo run -p rx_core --example operator_pairwise_example
let _subscription = (1..=4)
    .into_observable()
    .pairwise()
    .subscribe(PrintObserver::new("pairwise_operator"));

Output:

pairwise_operator - next: [1, 2]
pairwise_operator - next: [2, 3]
pairwise_operator - next: [3, 4]
pairwise_operator - completed
pairwise_operator - unsubscribed
Commit count: 652

cargo fmt