pub trait AperCodec {
type Output;
// Required method
fn aper_decode(
data: &mut PerCodecData,
) -> Result<Self::Output, PerCodecError>;
// Provided method
fn aper_encode(&self, _data: &mut PerCodecData) -> Result<(), PerCodecError> { ... }
}Expand description
Trait representing an ‘APER Codec’.
This ‘trait’ is to be derived by any struct or enum representing an ASN.1 Type.
Required Associated Types§
Required Methods§
fn aper_decode(data: &mut PerCodecData) -> Result<Self::Output, PerCodecError>
Provided Methods§
fn aper_encode(&self, _data: &mut PerCodecData) -> Result<(), PerCodecError>
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.