rx_core_operator_map_error

Crates.iorx_core_operator_map_error
lib.rsrx_core_operator_map_error
version0.2.0
created_at2026-01-19 16:47:54.656532+00
updated_at2026-01-24 15:08:01.473302+00
descriptionmap_error operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054948
size15,599
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_map_error

crates.io ci codecov license

Transform error values into another error value.

See Also

Example

cargo run -p rx_core --example operator_map_error_example
let _subscription = concat((
  (1..=5)
    .into_observable()
    .map_error(Never::map_into::<&'static str>()),
  throw("error").map(Never::map_into::<usize>()),
))
.skip(1)
.map_error(|error| format!("error? {error}"))
.subscribe(PrintObserver::new("map_error_operator"));

Output:

map_error_operator - next: 1
map_error_operator - next: 2
map_error_operator - next: 3
map_error_operator - next: 4
map_error_operator - next: 5
map_error_operator - error: "error? error"
map_error_operator - unsubscribed
Commit count: 652

cargo fmt