abstract struct Result(T)
- Result(T)
- Struct
- Value
- Object
Overview
Wrap a value into a Result
(like in Rust).
Direct Known Subclasses
Defined in:
result.crConstructors
Class Method Summary
Instance Method Summary
- #err? : Bool
- #ok? : Bool
- #state : Tuple(Symbol, Symbol, T)
-
#status : Symbol
Result
status as aSymbol
(:done or :fail, etc). -
#status?(s : Symbol) : Bool
Checks a
#status
. -
#type : Symbol
Result
type as aSymbol
(:ok or :err). -
#unwrap
Unwrap the result
#value
(like Result::unwrap in Rust). -
#value : T
Returns the result value.