Result Type in Rust
Introduction
Result is a predefined enum type is Rust which is used to define the outcome of an operation that can either succeed or fail.
Example
This is how we write Result.
enum Result<T, E> {
Ok(T),
Err(E),
}
Ok represents success of gen...
diptobiswas.hashnode.dev2 min read