pub trait DecodeOwned: for<'a> Decode<'a> { }
Available on crate feature pkcs8 only.
Expand description

Marker trait for data structures that can be decoded from DER without borrowing any data from the decoder.

This is primarily useful for trait bounds on functions which require that no data is borrowed from the decoder, for example a PEM decoder which needs to first decode data from Base64.

This trait is inspired by the DeserializeOwned trait from serde.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> DecodeOwned for T
where T: for<'a> Decode<'a>,