Skip to content

Pass Header to DecodeValue #392

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

Merged
merged 1 commit into from
Feb 7, 2022
Merged

Pass Header to DecodeValue #392

merged 1 commit into from
Feb 7, 2022

Conversation

npmccallum
Copy link
Contributor

This makes it possible to implement DecodeValue for tagless types such
as CHOICE and ANY.

Signed-off-by: Nathaniel McCallum nathaniel@profian.com

This makes it possible to implement `DecodeValue` for tagless types such
as `CHOICE` and `ANY`.

Signed-off-by: Nathaniel McCallum <nathaniel@profian.com>
Copy link
Member

@tarcieri tarcieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This certainly does help address a few use cases.

I'm a bit worried in that it has a sharp edge in regard to context-specific IMPLICIT productions: anything which attempts to introspect on the tag will encounter the context-specific tag in that case in lieu of e.g. a universal tag they might be expecting.

It might be good to document that in the rustdoc for DecodeValue.

@tarcieri tarcieri merged commit 035c4ad into RustCrypto:master Feb 7, 2022
@npmccallum npmccallum deleted the hdr branch March 10, 2022 20:46
This was referenced May 8, 2022
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

Successfully merging this pull request may close these issues.

2 participants