Results.Types: Core types

Exported members

Results.Types.OptionType

Synonym for Union{Some{T}, None}.

Options implement the following protocols:

  • iterate: Yields one T if the Option is Some, yields nothing otherwise.
  • length: Returns 1 if the Result is Ok, 0 if Err
source
Results.Types.ResultType

Synonym for Union{Ok{T}, Err{E}}.

As well as working with the Result combinators defined below, Results implement the following protocols:

  • iterate: Yields one T if the Result is Ok, yields nothing otherwise.
  • length: Returns 1 if the Result is Ok, 0 if Err
source

Un-exported members

Base methods extended