Trait asn1_cereal::info::Asn1Info
[−]
[src]
pub trait Asn1Info { fn asn1_tag() -> Option<Tag>; fn asn1_type() -> Type; }
Provides ASN.1 information about a Rust type, including the BER tag and ASN.1 type.
Required Methods
fn asn1_tag() -> Option<Tag>
Get the ASN.1 tag (if defined) for this Rust type. Some types don't have a tag, eg. CHOICE.
fn asn1_type() -> Type
Get the ASN.1 type for this Rust type.
Implementors
impl Asn1Info for OctetString
impl Asn1Info for i8
impl Asn1Info for i16
impl Asn1Info for i32
impl Asn1Info for i64
impl Asn1Info for u8
impl Asn1Info for u16
impl Asn1Info for u32
impl Asn1Info for u64
impl Asn1Info for isize
impl Asn1Info for usize
impl Asn1Info for String
impl Asn1Info for bool
impl<T> Asn1Info for Vec<T>
impl<T> Asn1Info for HashSet<T>