rx_core_operator_lift_option

Crates.iorx_core_operator_lift_option
lib.rsrx_core_operator_lift_option
version0.2.0
created_at2026-01-19 16:04:54.577352+00
updated_at2026-01-24 15:06:46.490151+00
descriptionlift_option operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054885
size13,175
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_lift_option

crates.io ci codecov license

Filter out None and forward Some values.

See Also

Example

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

cargo fmt