A export type that represents the result of an operation that may succeed (Ok) or fail (Err).
Ok
Err
Ok<T>
T
Err<E>
E
This pattern is useful for handling errors in a functional way without using exceptions.
The success value export type.
The error value export type.
A export type that represents the result of an operation that may succeed (
Ok) or fail (Err).Ok<T>: Represents success and contains a value of export typeT.Err<E>: Represents failure and contains an error of export typeE.This pattern is useful for handling errors in a functional way without using exceptions.