A method that should be called from every well-designed equals method that is open to be overridden in a subclass.
The universal equality method defined in AnyRef
.
Returns the embedded result.
Returns the embedded result.
The hashCode method for reference types.
Functional composition of ParseResults.
Functional composition of ParseResults.
the function to be lifted over this result
f
applied to the result of this ParseResult
, packaged up as a new ParseResult
Partial functional composition of ParseResults.
Partial functional composition of ParseResults.
the partial function to be lifted over this result
a function that takes the same argument as f
and
produces an error message to explain why f
wasn't applicable
(it is called when this is the case)
if f
f is defined at the result in this ParseResult
, f
applied to the result of this ParseResult
, packaged up as
a new ParseResult
. If f
is not defined, Failure
.
An error message string describing the failure.
The parser's unconsumed input at the point where the failure occurred.
The parser's unconsumed input at the point where the failure occurred.
The size of this product.
The nth element of this product, 0-based.
An iterator over all the elements of this product.
An iterator over all the elements of this product.
in the default implementation, an Iterator[Any]
A string used in the toString
methods of derived classes.
The toString method of a Failure yields an error message.
(Since version 2.8.0) use productIterator instead
The failure case of
ParseResult
: contains an error-message and the remaining input. Parsing will back-track when a failure occurs.An error message string describing the failure.
The parser's unconsumed input at the point where the failure occurred.