Result<T, E> (Rust)

Result<T, E> is Rust's type for operations that can fail. It is an enum with Ok(value) for success and Err(error) for failure. Rust uses it instead of…