Returns the result of $onSuccess if the parsing is successful, otherwise it returns the result of $onFailure
Returns the result of $onSuccess if the parsing is successful, otherwise it returns the result of $onFailure
Converts this instance of Parsed into a Parsed.Success or throws an exception if it was a failure.
Converts this instance of Parsed into a Parsed.Success or throws an exception if it was a failure.
The index where the parse completed; may be less than the length of input
The result of this parse
The result of this parse
The index where the parse completed; may be less than the length of input