3 ms·
While Result is designed for that, it was built with an Enum (see here: https://doc.rust-lang.org/src/core/result.rs.html#241-251 https://doc.rust-lang.org/src/
by zanellato19 6y ago
While Result is designed for that, it was built with an Enum (see here: https://doc.rust-lang.org/src/core/result.rs.html#241-251 https://doc.rust-lang.org/src/core/result.rs.html#241-251)
So you can also build an enum that doesn't have any explicit mention of which is the right path