macro_rules! implement_std_field {
($name:ident $fn_read:expr; $fn_write:expr) => { ... };
}
Implements the Field
trait for a type that has writer and reader functions.
- Reader signature is
fn (&[u8]) -> T
.
- Writer signature is
fn (&mut [u8], T)
.
For additional information, refer to the encoding
module documentation.