[−][src]Macro neli::drive_serialize
This macro can be used to serialize a single field in a struct.
Examples
use neli::{err::SerError, Nl}; fn drive_serialize() -> Result<(), SerError> { let int = 6u16; let mut vec = vec![0; int.size()]; let pos = neli::drive_serialize!(&int, vec.as_mut_slice(), 0); neli::drive_serialize!(END vec.as_mut_slice(), pos); Ok(()) }