pub fn decode<T: Decode>(input: &[u8]) -> Result<T, DecodeError>
Attempts to decode T from input using OER.
T
input
Returns DecodeError if input is not valid OER encoding specific to the expected type.
DecodeError