pub trait SerPrimitive { // Required method fn write(f: &mut Vec<u8>, val: Self) -> usize where Self: Sized; }