pub trait Tagged { // Required method fn tag(&self) -> Tag; }
Types which have an ASN.1 Tag.
Tag
use der::{Tag, Tagged}; /// Struct, which Tag depends on data struct MyOctetOrBitString(bool); impl Tagged for MyOctetOrBitString { fn tag(&self) -> Tag { if self.0 { Tag::OctetString } else { Tag::BitString } } }
Get the ASN.1 tag that this type is encoded with.
Types which are FixedTag always have a known Tag type.
FixedTag