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]
fn clone(&self) -> BERAlt
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl BerEncRules for BERAlt
[src]
fn tag_rules() -> TagEnc
Get the encoding rules for tags.
fn len_rules() -> LenEnc
Get the encoding rules for lengths.
fn shortest_form() -> bool
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