Gcode. Result
(gcode v1.0.2)
Copy Markdown
A helper which represents a result type.
This is really just a wrapper around Erlang's ok/error tuples.
Summary
Functions
Initialise or match an error value
Is the result an error?
Convert a successful result another result.
Initialise or match an ok value
Is the result ok?
Attempt to unwrap a result and return the inner value. Raises an exception if the result contains an error.
Types
Functions
Initialise or match an error value
Is the result an error?
Convert a successful result another result.
Initialise or match an ok value
Is the result ok?
Attempt to unwrap a result and return the inner value. Raises an exception if the result contains an error.