Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Logos::Result(T, E)
Inherits
Struct
<
Value
<
Object
Simple Result type similar to Rust's Result
Constructors
error
(error :
E
) : self
Source
new
(value :
T
, is_ok :
Bool
= true)
Source
new
(error :
E
, is_ok :
Bool
= false)
Source
ok
(value :
T
) : self
Source
Instance methods
error?
Source
matches?
(expected :
T
) :
Bool
Source
ok?
Source
unwrap
Source
unwrap_error
Source
value?
Source