Struct asn1_cereal::ber::enc::BER
[−]
[src]
pub struct BER;
Basic Encoding Rules define the most basic rules that can be used to encode an ASN.1 tag. These are the default encoding rules used when decoding ASN1, as all variants are valid BER.
When encoding, explicit tags and definite length encoding will be used for all elements.
Trait Implementations
impl Copy for BER
[src]
impl Clone for BER
[src]
fn clone(&self) -> BER
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 BER
[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