pub trait SimpleAsn1Readable<'a>: Sized {
const TAG: Tag;
// Required method
fn parse_data(data: &'a [u8]) -> ParseResult<Self>;
}Expand description
Types with a fixed-tag that can be parsed as DER ASN.1
Required Associated Constants§
Required Methods§
Sourcefn parse_data(data: &'a [u8]) -> ParseResult<Self>
fn parse_data(data: &'a [u8]) -> ParseResult<Self>
Parse the value from the given data bytes.
This method receives the value portion of a TLV (without the tag or length) and should parse it into the appropriate type.
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.