Trivial change to add character::{streaming,complete}::{usize,isize} parsers. The use case is to parse item quantities which are later used in nom::multi::count, or to parse values which are intended to index collections without residing to needless casts.
Trivial change to add
character::{streaming,complete}::{usize,isize}
parsers. The use case is to parse item quantities which are later used innom::multi::count
, or to parse values which are intended to index collections without residing to needless casts.Example use case:
Without this change I have to complicate the code with casts:
This change applies to both
main
and7.x
branches, if accepted please merge to both. Test pass for both branches as well.