| Crates.io | rx_core_operator_map_error |
| lib.rs | rx_core_operator_map_error |
| version | 0.2.0 |
| created_at | 2026-01-19 16:47:54.656532+00 |
| updated_at | 2026-01-24 15:08:01.473302+00 |
| description | map_error operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054948 |
| size | 15,599 |
Transform error values into another error value.
Into.Never signals into concrete types.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