Rust's `Result::is_ok_and()` method will consume `self`, so I need to add an additional `.as_ref()` if I want to use it. Does anyone know the motivation behind this design?

#rust #rustlang

Comments