Rust Result Map Error. Merging or switching from a stream of Result objects onto a stream of objects. This function can be used to unpack a successful result while handling an error.
In languages like Java JS Python etc you usually throw exceptions and return successful values. Instead it has the type Result for recoverable errors and the panic. Written by Herman J.
Error handling in Rust is very different if youre coming from other languages.
Instead it has the type Result for recoverable errors and the panic. Allows you to do the same actions as the normal rxjs switchMap and rxjs switchMap operator on a stream of Result objects. Instead it has the type Result for recoverable errors and the panic. Behaves the same as elseMap but takes a value instead of a function.