/// A simple function that serializes and then immediately deserializes a value.
/// This should always return Ok(v) where `v` is equivalent to the given
/// argument. Used for testing.
#[cfg(test)]pubfnserialize_deserialize<A:super::Serialize>(x:&A)->super::ParseResult<A>{usestd::io::Cursor;letmut buf =Vec::<u8>::new();
x.serial(&mut buf);A::deserial(&mutCursor::new(buf))}