| Crates.io | rx_core_operator_lift_option |
| lib.rs | rx_core_operator_lift_option |
| version | 0.2.0 |
| created_at | 2026-01-19 16:04:54.577352+00 |
| updated_at | 2026-01-24 15:06:46.490151+00 |
| description | lift_option operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054885 |
| size | 13,175 |
Filter out None and forward Some values.
Option and keep only the Some values.n values, then complete.n values.cargo run -p rx_core --example operator_lift_option_example
let _subscription = (1..=5)
.into_observable()
.map(|i| if i % 2 == 0 { Some(i) } else { None })
.lift_option()
.subscribe(PrintObserver::new("lift_option_operator"));
Output:
lift_option_operator - next: 2
lift_option_operator - next: 4
lift_option_operator - completed
lift_option_operator - unsubscribed