The range.rs file is amended so that both RangeToInclusive and RangeInclusive can be accepted as arguments to the Parser::repeat method.
This implementation no longer requires the range.rs implementation of Bound. Given that Bound was public this may be considered a breaking change and the version bumped up accordlingly. Note: I did not update the version in Cargo.toml.
Also - I can see from https://github.com/J-F-Liu/pom/issues/58 that Range may not always be applicable as usize only. I've taken it as a "private" implementation, only to be used in repeat() calls, so we may need further discussion before this PR can be completed...
The
range.rs
file is amended so that bothRangeToInclusive
andRangeInclusive
can be accepted as arguments to theParser::repeat
method.This implementation no longer requires the
range.rs
implementation ofBound
. Given thatBound
was public this may be considered a breaking change and the version bumped up accordlingly. Note: I did not update the version inCargo.toml
.Also - I can see from https://github.com/J-F-Liu/pom/issues/58 that Range may not always be applicable as
usize
only. I've taken it as a "private" implementation, only to be used inrepeat()
calls, so we may need further discussion before this PR can be completed...