Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
vcpkg-cr
main
Top Level Namespace
Err
Ok
Result
Vcpkg
Config
Crystal
DisabledByEnv
Error
LibNotFound
Library
NotMSVC
PcFile
PcFiles
Port
RequiredEnvMissing
TargetTriplet
VcpkgError
VcpkgInstallation
VcpkgNotFound
VcpkgTarget
Generated using Crystal 1.14.0
2024-11-26 07:44:01 UTC
struct
Err(E)
Err(E)
Struct
Value
Object
Included Modules
Result
Defined in:
result.cr
Constructors
.new
(error : E)
Instance Method Summary
#clone
#copy_with
(error _error = @error)
#err?
#error
: E
#map
(&)
#map_err
(&)
#ok?
#or
(res : Result)
#unwrap
#unwrap_err
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
]