67 static Result fail (
const String& errorMessage) noexcept;
71 bool wasOk() const noexcept;
77 bool failed() const noexcept;
82 operator
bool() const noexcept;
87 bool operator!() const noexcept;
92 const
String& getErrorMessage() const noexcept;
100 bool operator== (const
Result& other) const noexcept;
101 bool operator!= (const
Result& other) const noexcept;
112 operator
int() const;
113 operator
void*() const;
static Result ok() noexcept