A very quickly implemented attempt at bringing the rust result type into c++ in a somewhat ergonomic way.