generic<T, E> struct Result {
T value;
E error;
int is_ok;
}Fields
valid when is_ok == 1
valid when is_ok == 0
Methods
(ok/err are the queries below)
null for an error result
null for an ok result
the value, or 'fallback' (the other one is dropped)
the value; panics for an error result
the error; panics for an ok result