Trait ldap3::asn1::ASNTag [] [src]

pub trait ASNTag {
    fn into_structure(self) -> StructureTag;
}

Conversion of a tag into a serializable form.

Required Methods

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.

Implementors