Struct asn1_cereal::ber::enc::DER
[−]
[src]
pub struct DER;
Distinguished Encoding Rules are a subset of BER, and provide a deterministic, shortest form of encoding. These are the default encoding rules used when encoding ASN.1.
Note: When decoding elements, invalid DER will cause an error. If this is an issue, the BER encoding rules should be used
Trait Implementations
impl Copy for DER
[src]
impl Clone for DER
[src]
fn clone(&self) -> DER
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 DER
[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