struct Err(E)

Included Modules

Defined in:

result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(error : E) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(error _error = @error) #

[View source]
def err? #

[View source]
def error : E #

def map(&) #

[View source]
def map_err(&) #

[View source]
def ok? #

[View source]
def or(res : Result) #

[View source]
def unwrap #

[View source]
def unwrap_err #

[View source]