class Result::Error(V, E)

Defined in:

result.cr

Instance Method Summary

Instance methods inherited from class Result(V, E)

and_then(&block : V -> Result(V, E)) : Result(V, E) and_then, error : E error, error? : Bool error?, ok? : Bool ok?, or_else(&block : E -> Result(V, E)) : Result(V, E) or_else, value : V value

Constructor methods inherited from class Result(V, E)

error(error : E) : self error, ok(value : V) : self ok

Instance Method Detail

def and_then(&block : V -> Result(V, E)) : Result(V, E) #

[View source]
def error : E #

[View source]
def error? : Bool #

[View source]
def ok? : Bool #

[View source]
def or_else(&block : E -> Result(V, E)) : Result(V, E) #

[View source]
def value : V #

[View source]