parsers that look for fixed data like tag, is_not, and similar (generally ones that use the FindToken trait?) should be able to take single u8s so they can be used with byte character literals or for matching precise byte values. Currently impls exist for [u8; 1] which is cumbersome, and &[u8] which means needing to use byte strings, and either dereferencing or casting them (as byte string literals are &[u8; N], for which no impls exist).
parsers that look for fixed data like
tag
,is_not
, and similar (generally ones that use the FindToken trait?) should be able to take singleu8
s so they can be used with byte character literals or for matching precise byte values. Currently impls exist for[u8; 1]
which is cumbersome, and&[u8]
which means needing to use byte strings, and either dereferencing or casting them (as byte string literals are&[u8; N]
, for which no impls exist).