Result
Result: Ok, Err, unwrap, print
Functions: print
enum Result<T, E>
The result of an operation that can fail: either success
(Ok) holding the produced value, or failure
(Err) holding the error.
Ok
Ok(T value),Err
Err(E error),unwrap
T& unwrap()Borrows the success value, aborting with the error if the result is
Err. To move the value out, match with switch
instead.
void print(OutputStream& stream)Writes the result to the given stream.
void print<T: Printable, E: Printable>(Result<T, E>& result)Prints the given result.