[−][src]Trait lber::structures::ASNTag
Conversion of a tag into a serializable form.
Required methods
fn into_structure(self) -> StructureTag
Encode yourself into a generic Tag format.
The only thing that changes between types is how to encode the wrapped value into bytes; the encoding of the class and id does not change. By first converting the tag into a more generic tag (with already encoded payload), we don't have to reimplement the encoding step for class/id every time.