Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow tag/is_not/similar to take u8 in addition to arrays and slices #1692

Open
LunarLambda opened this issue Sep 14, 2023 · 0 comments
Open

Comments

@LunarLambda
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant