Main public logs
Appearance
Combined display of all available logs of JOHNWICK. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 04:31, 22 November 2025 PC talk contribs created page Rust - How to use map err to Handle Result (Created page with "We can call the map_err method on any Result value. If the Result is Err, map_err applies the function to transform the error. If the Result is Ok, it does nothing. In other words, we use map_err to manipulate the value inside an Err. https://youtu.be/3ZiRLOd6gjY?si=RdGFxxFyNE08ZPBQ fn main() { let b = hello(11).map_err(|e|{ println!("error : {}", e); format!("The error is {}", e) } ); println!("b: {:?}", b); } fn hello(a :...")