Skip to content

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 [email protected]

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

Signed-off-by: Nathaniel McCallum <[email protected]>
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