Macro x509_cert::impl_newtype
source · macro_rules! impl_newtype { ($newtype:ty, $inner:ty) => { ... }; }
Expand description
Implements the following traits for a newtype of a der
decodable/encodable type:
From
conversions to/from the inner typeAsRef
andAsMut
DecodeValue
andEncodeValue
FixedTag
mapping to the inner value’sFixedTag::TAG
The main case is simplifying newtypes which need an AssociatedOid