pub fn from_slice<'a, T>(bytes: &'a [u8]) -> Result<T>
where
    T: Deserialize<'a>,
{
    log::trace!("Starting deserialisation: {:?}", bytes);
    let mut deserializer = Deserializer::from_slice(bytes);

    T::deserialize(&mut deserializer)
}
/// Deserialize an instance of `T` from bytes of ASN.1 DER.
Deserialize an instance of `T` from bytes of ASN.1 DER.
Deserialize an instance of ` T ` from bytes of ASN . 1 DER .
pub fn from_slice<'a, T>(bytes: &'a [u8]) -> Result<T>
where
    T: Deserialize<'a>,
{
    log::trace!("Starting deserialisation: {:?}", bytes);
    let mut deserializer = Deserializer::from_slice(bytes);
    T::deserialize(&mut deserializer)
}
pub fn from_slice < ' a , T > ( bytes : & ' a [ u8 ] ) -> Result < T > where T : Deserialize < ' a > , { log :: trace ! ( " " bytes ) ; let mut deserializer = Deserializer :: from_slice ( bytes ) ; T :: deserialize ( & mut deserializer ) }
Deserialize an instance of `T` from bytes of ASN.1 DER.
Deserialize an instance of ` T ` from bytes of ASN . 1 DER .
bytes
&'a [u8]
bytes
&'a [u8]