Module asn1_cereal::ber::serial::alias [] [src]

Macros to generate the implementation of the serialization traits for Rust newtypes (tuple structs). This can be used to represent ASN.1 type assignments, or wrap Rust types, to provide distinct types. ```

[macro_use] extern crate asn1_cereal; fn main() {

struct A(u64);

// Alias with no tag ber_alias!(A ::= u64, "A");

// OR struct B(u64);

// Alias with a custom tag. ber_alias!(B ::= [APPLICATION 3] u64, "B"); } ```