🔧Result
Result
accepts 2 type parameters, T
is the ok value type, E
is the error value type.
Ok
and Err
are 2 internal types, you shouldn't use them directly.
Example
You can create a Result
type by calling 2 functions ok
and err
.
Last updated