pub fn hex_serialize<S, T>(x: &T, s: S) -> Result<S::Ok, S::Error>where S: Serializer, T: AsRef<[u8]>,