Macro asn1_cereal::ber_sequence_serialize [] [src]

macro_rules! ber_sequence_serialize {
    ($rs_type:ty, $($args:tt)*) => { ... };
    (_ { $this:ident $e:ident $writer:ident $bytes:ident $count:ident }
      $item:ident; $($args:tt)*) => { ... };
    (_ { $this:ident $e:ident $writer:ident $bytes:ident $count:ident }
      $item:ident (OPTIONAL); $($args:tt)*) => { ... };
    (_ { $this:ident $e:ident $writer:ident $bytes:ident $count:ident }
      $item:ident ([$($opts:tt)*] OPTIONAL); $($args:tt)*) => { ... };
    (_ { $this:ident $e:ident $writer:ident $bytes:ident $count:ident }
      $item:ident (DEFAULT $default:expr); $($args:tt)*) => { ... };
    (_ { $this:ident $e:ident $writer:ident $bytes:ident $count:ident }
      $item:ident ([$($opts:tt)*] DEFAULT $default:expr); $($args:tt)*) => { ... };
    (_ { $this:ident $e:ident $writer:ident $bytes:ident $count:ident }
      $item:ident ($($opts:tt)*); $($args:tt)*) => { ... };
    (_ { $this:ident $e:ident $writer:ident $bytes:ident $count:ident $tag:expr, $value:expr }
      $($args:tt)*) => { ... };
    (_ { $($args:tt)* } ) => { ... };
}

This macro defines the BerSerialize trait for a rust struct. The code generated will serialize the specified fields in the order that they are given.