struct Ok(T)

Included Modules

Defined in:

result.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(value : T) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(value _value = @value) #

[View source]
def err? #

[View source]
def map(&block : T -> U) forall U #

[View source]
def map_err(&) #

[View source]
def ok? #

[View source]
def or(res) #

[View source]
def unwrap #

[View source]
def unwrap_err #

[View source]
def value : T #