Type Alias Result<T, E>

Result: Ok<T> | Err<E>

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

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

Type Parameters

  • T
  • E