Trait asn1_cereal::ber::enc::BerEncRules [] [src]

pub trait BerEncRules: Copy {
    fn tag_rules() -> TagEnc;
    fn len_rules() -> LenEnc;
    fn shortest_form() -> bool;
}

A trait to define encoding rules to use while encoding ASN.1.

Required Methods

Get the encoding rules for tags.

Get the encoding rules for lengths.

Returns true when primitive elements should be encoded using the shortest form. If this is true when decoding, it should be an error to not use the shortest form.

Implementors