usecrate::Serialize;/// Serializes the given value to bytes using the test serializer, then calls
/// the given function on those bytes.
pubfnto_bytes(value:&impl Serialize, f: impl FnOnce(&mut [u8])){letmut bytes =crate::to_bytes(value).expect("failed to serialize value");f(&mut bytes);}