[][src]Macro exonum::implement_pod_as_ref_field

macro_rules! implement_pod_as_ref_field {
    ($name:ident) => { ... };
}

Implements a field helper for a POD type. This macro enables to convert POD type data into a byte array.

Additionally, this macro implements the ExonumJson and Field traits for data of POD type, so that they can be used within persistent data structures in Exonum.

For additional information, refer to the encoding module documentation.

Note. Beware of platform specific data representation.