| Crates.io | rx_core_operator_pairwise |
| lib.rs | rx_core_operator_pairwise |
| version | 0.2.0 |
| created_at | 2026-01-19 18:00:12.44648+00 |
| updated_at | 2026-01-24 15:09:08.3335+00 |
| description | pairwise operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2055030 |
| size | 13,812 |
Emit the previous and current values together.
Into.Never signals into concrete types.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