der

Trait DecodeOwned

Source
pub trait DecodeOwned: for<'a> Decode<'a> { }
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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