Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
try
v1.6.0
Failure
Success
Try
Interface
Built with Crystal 1.9.2
2023-10-08 10:04:49 UTC
module
Try(T)
Defined in:
try.cr
Class Method Summary
.try
(&) : Failure(T) | Success(T)
Macro Summary
match
(try, &block)
Expressions: x : Success x + 1
Class Method Detail
def self.
try
(&) :
Failure
(T) |
Success
(T)
#
[
View source
]
Macro Detail
macro
match
(try, &block)
#
Expressions: x : Success x + 1
TypeDeclaration: x : Success = x + 1
[
View source
]