Skip to content

Using the bits parser and its error #498

Answered by epage
TheNeikos asked this question in Q&A
Discussion options

You must be logged in to vote

But ErrorConvert is only implemented for InputError.

This is just overlooked as bit parsing doesn't get much attention (I wasn't even sure how much desire there is for this API!).

Feel free to create an issue.

Since PResult is the 'main' way of using winnow, this means I have to awkwardly specify the Error type using a turbofish. bits has 5 generics (even if I can infer 4 of them).

Note that PResult only defaults the error type. You can explicitly specify it.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TheNeikos
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants