Type Alias Result<T, E>

Source
Expand description

A value that either a success (Ok) or an error (Err)

Construct a success with { val: ... } and an error with { err: ... }

type Result<T, E> = Ok<T> | Err<E>