forValue<T> static method
Produces a ParseResult which represents a successful parse operation.
When T
is a reference type, value
should not be null,
but this isn't currently checked.
value
: The successfully parsed value.
Returns: A ParseResult representing a successful parsing operation.
Implementation
static ParseResult<T> forValue<T>(T value) => ParseResult<T>._(value);