Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Mar 25, 2022

Adds a marker trait for types which can be der::Decoded without borrowing any data from the input.

It's useful for cases where borrowing from the input isn't possible. For example, if we were to add on-the-fly PEM decoding as proposed in #525.

Inspired by the DeserializeOwned trait from serde.

Adds a marker trait for types which can be `der::Decode`d without
borrowing any data from the input.

It's useful for cases where borrowing from the input isn't possible. For
example, if we were to add on-the-fly PEM decoding as proposed in #525.
@tarcieri tarcieri merged commit 609fdd2 into master Mar 25, 2022
@tarcieri tarcieri deleted the der/decode-owned-trait branch March 25, 2022 16:14
@tarcieri tarcieri mentioned this pull request 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