Struct asn1_cereal::ber::enc::BERAlt [] [src]

pub struct BERAlt;

This set of rules creates a valid BER stream, but will use implicit tags where possible, and indefinite length encoding for all constructed elements.

Since definite length encoding must generate the element data before the tag, and indefinite length encoding does not, this is the ideal set of rules for large ASN.1 streams.

Note. Due to indefinite length encoding, this will not produce a valid DER encoding.

Trait Implementations

impl Copy for BERAlt
[src]

impl Clone for BERAlt
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl BerEncRules for BERAlt
[src]

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. Read more