Type Alias Result<T, E>

Result<T, E>: LuaMultiReturn<[error: true, value: E]> | LuaMultiReturn<[error: false, value: T]>

A result type that can be either an error or a value. Tries to take the best of Go's and Rust's error handling.

Type Parameters

  • T = Null
  • E = Null